= MaxPixelChannels)) // // giving this error: // error: comparison is always false due to limited range of data type [-Werror=type-limits] $CFLAGS[] = "-Wno-type-limits"; } if (strpos($IMAGEMAGICK_VERSION, "6") === 0 || strpos($IMAGEMAGICK_VERSION, "git6") === 0) { $CFLAGS[] = "-Wno-sign-compare"; $CFLAGS[] = "-Wno-unused-parameter"; } if (strpos($IMAGEMAGICK_VERSION, "6.8") === 0) { $CFLAGS = array("-Wno-deprecated-declarations"); } if (strpos($IMAGEMAGICK_VERSION, "6.9") === 0) { $CFLAGS[] = "-Wno-unused-variable"; } if ($PHP_VERSION == "5.6") { $CFLAGS = array( "-Wno-deprecated-declarations", "-Wdeclaration-after-statement", "-Werror", "-Wall", "-Wimplicit-function-declaration" ); } $result = implode(" ", $CFLAGS); echo $result; fwrite(STDERR, "Ok. CFLAGS are: $result\n");