Fixes for most compiler warnings using GCC 7.3.0 and mingw-w64. #494
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.
patching file src/config.h
Add an UNUSED macro to set the unused gcc attribute to fix compiler warnings
patching file src/fileio.hpp
Fix unused parameter warnings with UNUSED macro
patching file src/flif.cpp
Fix unused parameter warnings with UNUSED macro
patching file src/flif-dec.cpp
Fix unused parameter warnings with UNUSED macro
patching file src/flif-enc.cpp
Fix unused parameter warnings with UNUSED macro
patching file src/viewflif.c
add a copy of the UNUSED macro here so the example will compile without warnings
fix warnings about an invalid format string. mingw-w64 uses something different than MS Visual C.
Fix sign-comparison warnings between uint32_t and int. Some of that is because the SDL API uses int while FLIF uses uint32_t.
patching file src/image/image.hpp
Fix unused parameter warnings with UNUSED macro
Add "falls through" comment to some case statements to eliminate GCC warnings about fallthrough.
patching file src/library/flif_common.h
MINGW32 also requires dllimport/dllexport
patching file src/library/flif-interface-private_common.hpp
MINGW32 also requires dllexport
patching file src/maniac/compound.hpp
Fix unused parameter warnings with UNUSED macro
patching file src/maniac/rac_enc.hpp
Fix unused parameter warnings with UNUSED macro
patching file src/transform/colorbuckets.hpp
Fix unused parameter warnings with UNUSED macro
patching file src/transform/framecombine.hpp
Fix unused parameter warnings with UNUSED macro
patching file src/transform/transform.hpp
Fix unused parameter warnings with UNUSED macro
patching file src/transform/palette_C.hpp
Fix unused parameter warnings with UNUSED macro
patching file src/transform/ycocg.hpp
Fix unused parameter warnings with UNUSED macro