Enable GCC pedantic warnings with strict flags,

also modify MIN/MAX macros to prevent shadowing.
This commit is contained in:
2014-03-30 15:02:24 +11:00
parent 0782187979
commit c16bd951cd
4 changed files with 35 additions and 18 deletions

View File

@@ -28,6 +28,7 @@
*/
#ifdef __GNUC__
# pragma GCC diagnostic error "-Wpedantic"
# pragma GCC diagnostic error "-Wsign-conversion"
# if (__GNUC__ * 100 + __GNUC_MINOR__) >= 406 /* gcc4.6+ only */
# pragma GCC diagnostic error "-Wsign-compare"