1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Fixed some warnings flagged by Clang's static analyzer

This commit is contained in:
ed 2021-07-19 11:48:06 +01:00
parent d3556dfd7f
commit a2d03d2266
9 changed files with 52 additions and 12 deletions

View file

@ -363,11 +363,12 @@
#ifndef PNG_VERSION_INFO_ONLY
// JUCE modification
//JUCE CHANGE STARTS HERE
///* Inhibit C++ name-mangling for libpng functions but not for system calls. */
//#ifdef __cplusplus
//extern "C" {
//#endif /* __cplusplus */
//JUCE CHANGE ENDS HERE
/* Version information for C files, stored in png.c. This had better match
* the version above.
@ -3239,10 +3240,11 @@ PNG_EXPORT(244, int, png_set_option, (png_structrp png_ptr, int option,
PNG_EXPORT_LAST_ORDINAL(249);
#endif
// JUCE modification
// JUCE CHANGE STARTS HERE
//#ifdef __cplusplus
//}
//#endif
// JUCE CHANGE ENDS HERE
#endif /* PNG_VERSION_INFO_ONLY */
/* Do not put anything past this line */

View file

@ -958,11 +958,12 @@ PNG_INTERNAL_DATA(const png_byte, png_sRGB_delta, [512]);
#endif /* SIMPLIFIED_READ/WRITE */
// JUCE modification
// JUCE CHANGE STARTS HERE
///* Inhibit C++ name-mangling for libpng functions but not for system calls. */
//#ifdef __cplusplus
//extern "C" {
//#endif /* __cplusplus */
// JUCE CHANGE ENDS HERE
/* Internal functions; these are not exported from a DLL however because they
* are used within several of the C source files they have to be C extern.
@ -2145,10 +2146,11 @@ PNG_INTERNAL_FUNCTION(int,
#include "pngdebug.h"
// JUCE modification
// JUCE CHANGE STARTS HERE
//#ifdef __cplusplus
//}
//#endif
// JUCE CHANGE ENDS HERE
#endif /* PNG_VERSION_INFO_ONLY */
#endif /* PNGPRIV_H */

View file

@ -425,6 +425,10 @@ png_do_write_invert_alpha(png_row_infop row_info, png_bytep row)
sp+=3; dp = sp;
*dp = (png_byte)(255 - *(sp++));
}
// JUCE CHANGE STARTS HERE
(void) dp;
// JUCE CHANGE ENDS HERE
}
#ifdef PNG_WRITE_16BIT_SUPPORTED
@ -449,6 +453,10 @@ png_do_write_invert_alpha(png_row_infop row_info, png_bytep row)
*(dp++) = (png_byte)(255 - *(sp++));
*dp = (png_byte)(255 - *(sp++));
}
// JUCE CHANGE STARTS HERE
(void) dp;
// JUCE CHANGE ENDS HERE
}
#endif /* WRITE_16BIT */
}
@ -487,6 +495,10 @@ png_do_write_invert_alpha(png_row_infop row_info, png_bytep row)
*(dp++) = (png_byte)(255 - *(sp++));
*dp = (png_byte)(255 - *(sp++));
}
// JUCE CHANGE STARTS HERE
(void) dp;
// JUCE CHANGE ENDS HERE
}
#endif /* WRITE_16BIT */
}