-
Notifications
You must be signed in to change notification settings - Fork 427
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Various compiler warnings for C++11, 64-bit, and non-x86 platforms #34
Open
refnum
wants to merge
6
commits into
lvandeve:master
Choose a base branch
from
FeralInteractive:feral_warnings
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Merged
ericwa
pushed a commit
to ericwa/Quakespasm
that referenced
this pull request
Aug 12, 2017
image.c: define LODEPNG_NO_COMPILE_CPP for lodepng.c. image.c: define STB_IMAGE_WRITE_STATIC for stb_image_write.h image.c: minor whitespace tidy-up. stb_image_write.h: remove extern declaration for now non-existing stbi_write_tga_with_rle (missed in commit r1468). stb_image_write.h: comment out stbi_write_jpg_to_func() which quakespasm doesn't use. lodepng.c (lodepng_save_file): remove unneeded (char*) cast from buffer. lodepng.c (lodepng_read32bitInt): make it static. lodepng.c (lodepng_get_raw_size_lct): make it static, and move below to the place it is actually used. lodepng.c (lodepng_info_swap): remove (unused function). lodepng.c (readChunk_zTXt,readChunk_iTXt,addChunk_zTXt, addChunk_iTXt): add missing const to casts on const pointers in zlib_compress() calls. (see: lvandeve/lodepng#34). lodepng.c (inflateHuffmanBlock): wrong error code if huffmanDecodeSymbol fail. (see: lvandeve/lodepng#52). git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1471 af15c1b1-3010-417e-b628-4374ebc0bcbd
bsmr
pushed a commit
to bsmr/quakespawm
that referenced
this pull request
Aug 13, 2017
image.c: define LODEPNG_NO_COMPILE_CPP for lodepng.c. image.c: define STB_IMAGE_WRITE_STATIC for stb_image_write.h image.c: minor whitespace tidy-up. stb_image_write.h: remove extern declaration for now non-existing stbi_write_tga_with_rle (missed in commit r1468). stb_image_write.h: comment out stbi_write_jpg_to_func() which quakespasm doesn't use. lodepng.c (lodepng_save_file): remove unneeded (char*) cast from buffer. lodepng.c (lodepng_read32bitInt): make it static. lodepng.c (lodepng_get_raw_size_lct): make it static, and move below to the place it is actually used. lodepng.c (lodepng_info_swap): remove (unused function). lodepng.c (readChunk_zTXt,readChunk_iTXt,addChunk_zTXt, addChunk_iTXt): add missing const to casts on const pointers in zlib_compress() calls. (see: lvandeve/lodepng#34). lodepng.c (inflateHuffmanBlock): wrong error code if huffmanDecodeSymbol fail. (see: lvandeve/lodepng#52).
Novum
pushed a commit
to Novum/vkQuake
that referenced
this pull request
Aug 27, 2017
image.c: define LODEPNG_NO_COMPILE_CPP for lodepng.c. image.c: define STB_IMAGE_WRITE_STATIC for stb_image_write.h image.c: minor whitespace tidy-up. stb_image_write.h: remove extern declaration for now non-existing stbi_write_tga_with_rle (missed in commit r1468). stb_image_write.h: comment out stbi_write_jpg_to_func() which quakespasm doesn't use. lodepng.c (lodepng_save_file): remove unneeded (char*) cast from buffer. lodepng.c (lodepng_read32bitInt): make it static. lodepng.c (lodepng_get_raw_size_lct): make it static, and move below to the place it is actually used. lodepng.c (lodepng_info_swap): remove (unused function). lodepng.c (readChunk_zTXt,readChunk_iTXt,addChunk_zTXt, addChunk_iTXt): add missing const to casts on const pointers in zlib_compress() calls. (see: lvandeve/lodepng#34). lodepng.c (inflateHuffmanBlock): wrong error code if huffmanDecodeSymbol fail. (see: lvandeve/lodepng#52). git-svn-id: https://svn.code.sf.net/p/quakespasm/code/trunk@1471 af15c1b1-3010-417e-b628-4374ebc0bcbd
svn2github
pushed a commit
to svn2github/quakespasm
that referenced
this pull request
Sep 6, 2017
image.c: define LODEPNG_NO_COMPILE_CPP for lodepng.c. image.c: define STB_IMAGE_WRITE_STATIC for stb_image_write.h image.c: minor whitespace tidy-up. stb_image_write.h: remove extern declaration for now non-existing stbi_write_tga_with_rle (missed in commit r1468). stb_image_write.h: comment out stbi_write_jpg_to_func() which quakespasm doesn't use. lodepng.c (lodepng_save_file): remove unneeded (char*) cast from buffer. lodepng.c (lodepng_read32bitInt): make it static. lodepng.c (lodepng_get_raw_size_lct): make it static, and move below to the place it is actually used. lodepng.c (lodepng_info_swap): remove (unused function). lodepng.c (readChunk_zTXt,readChunk_iTXt,addChunk_zTXt, addChunk_iTXt): add missing const to casts on const pointers in zlib_compress() calls. (see: lvandeve/lodepng#34). lodepng.c (inflateHuffmanBlock): wrong error code if huffmanDecodeSymbol fail. (see: lvandeve/lodepng#52). git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk@1471 af15c1b1-3010-417e-b628-4374ebc0bcbd
svn2github
pushed a commit
to svn2github/quakespasm2
that referenced
this pull request
Sep 6, 2017
image.c: define LODEPNG_NO_COMPILE_CPP for lodepng.c. image.c: define STB_IMAGE_WRITE_STATIC for stb_image_write.h image.c: minor whitespace tidy-up. stb_image_write.h: remove extern declaration for now non-existing stbi_write_tga_with_rle (missed in commit r1468). stb_image_write.h: comment out stbi_write_jpg_to_func() which quakespasm doesn't use. lodepng.c (lodepng_save_file): remove unneeded (char*) cast from buffer. lodepng.c (lodepng_read32bitInt): make it static. lodepng.c (lodepng_get_raw_size_lct): make it static, and move below to the place it is actually used. lodepng.c (lodepng_info_swap): remove (unused function). lodepng.c (readChunk_zTXt,readChunk_iTXt,addChunk_zTXt, addChunk_iTXt): add missing const to casts on const pointers in zlib_compress() calls. (see: lvandeve/lodepng#34). lodepng.c (inflateHuffmanBlock): wrong error code if huffmanDecodeSymbol fail. (see: lvandeve/lodepng#52). git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1471 af15c1b1-3010-417e-b628-4374ebc0bcbd
alexey-lysiuk
pushed a commit
to alexey-lysiuk/quakespasm-macos
that referenced
this pull request
Mar 17, 2018
image.c: define LODEPNG_NO_COMPILE_CPP for lodepng.c. image.c: define STB_IMAGE_WRITE_STATIC for stb_image_write.h image.c: minor whitespace tidy-up. stb_image_write.h: remove extern declaration for now non-existing stbi_write_tga_with_rle (missed in commit r1468). stb_image_write.h: comment out stbi_write_jpg_to_func() which quakespasm doesn't use. lodepng.c (lodepng_save_file): remove unneeded (char*) cast from buffer. lodepng.c (lodepng_read32bitInt): make it static. lodepng.c (lodepng_get_raw_size_lct): make it static, and move below to the place it is actually used. lodepng.c (lodepng_info_swap): remove (unused function). lodepng.c (readChunk_zTXt,readChunk_iTXt,addChunk_zTXt, addChunk_iTXt): add missing const to casts on const pointers in zlib_compress() calls. (see: lvandeve/lodepng#34). lodepng.c (inflateHuffmanBlock): wrong error code if huffmanDecodeSymbol fail. (see: lvandeve/lodepng#52). git-svn-id: https://svn.code.sf.net/p/quakespasm/code/trunk@1471 af15c1b1-3010-417e-b628-4374ebc0bcbd
steinuil
pushed a commit
to steinuil/quake
that referenced
this pull request
Sep 18, 2018
image.c: define LODEPNG_NO_COMPILE_CPP for lodepng.c. image.c: define STB_IMAGE_WRITE_STATIC for stb_image_write.h image.c: minor whitespace tidy-up. stb_image_write.h: remove extern declaration for now non-existing stbi_write_tga_with_rle (missed in commit r1468). stb_image_write.h: comment out stbi_write_jpg_to_func() which quakespasm doesn't use. lodepng.c (lodepng_save_file): remove unneeded (char*) cast from buffer. lodepng.c (lodepng_read32bitInt): make it static. lodepng.c (lodepng_get_raw_size_lct): make it static, and move below to the place it is actually used. lodepng.c (lodepng_info_swap): remove (unused function). lodepng.c (readChunk_zTXt,readChunk_iTXt,addChunk_zTXt, addChunk_iTXt): add missing const to casts on const pointers in zlib_compress() calls. (see: lvandeve/lodepng#34). lodepng.c (inflateHuffmanBlock): wrong error code if huffmanDecodeSymbol fail. (see: lvandeve/lodepng#52).
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
We typically compile with virtually all compiler warnings all, which generates some warnings in lodepng.
None of these are particularly serious but would mean we could avoid patching our local copy.
They're generated from either clang or gcc, on a variety of platforms.