Piotr Fusik: > > ccopts=-pedantic -Os > > cc=g++ $(ccopts) -c $(FileNameExt) -o $(FileName).o > > ccc=gcc $(ccopts) -c $(FileNameExt) -o $(FileName).o > > command.compile.*.c=$(ccc) -std=c99 > > I think that "gcc -Wall -O2" is much more popular > than "gcc -pedantic -Os -std=c99". > "-pedantic" warns about things like string constants > longer than 520 or so characters (at least without "-std=c99").
The -pedantic -Os are consistent with the current settings and are used when building Scintilla and SciTE using Mingw although that is all C++ rather than C. I can't recall why these aren't used for the GTK+ builds. ... <Tries it>. Ah yes, its the "ISO C++ forbids casting between pointer-to-function and pointer-to-object". OK, add an extra cast to sptr_t and its happy. Tidied up some other warnings and -pedantic is now on for building on both platforms. I like having the same build flags in SciTE as are used for its own compilation. Neil _______________________________________________ Scite-interest mailing list [email protected] http://mailman.lyra.org/mailman/listinfo/scite-interest
