On Wed, 26 Jul 2017, Aaron Boxer wrote:

Thanks, Noel. Might be safer to do this on linux, where you can run make
check
to test. May I ask how I turn on -Wall on linux build for lcms ?

The normal way (quite well documented) is

  ./configure CFLAGS='-O2 -Wall' ...

I use these GCC options while building GraphicsMagick:

 ./configure 'CFLAGS=-O2 -g -ggdb -Wall -Winline -W -Wformat-security\
    -Wpointer-arith -Wdisabled-optimization -Wdeclaration-after-statement'

There are of course many more warning options which can be enabled for people who have plenty of time on their hands. Even these options are not likely to include type conversion warnings.

Optimizing warnings for just one compiler is a bad idea. At least three completely different compilers should be used.

Bob
--
Bob Friesenhahn
bfrie...@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Lcms-user mailing list
Lcms-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lcms-user

Reply via email to