Re: Package segfaults when built with -O2 but not with -O0

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Kevin Kofler wrote:

> Indeed, -Wall is not really all. :-) -Wall -Wextra is closer to all, but 
> there are still some things those won't warn about, e.g. -Wwrite-strings 
> catches places which use a string literal as a potentially writable char * 
> instead of a const char *.

-O2 is required by -Warray-bounds.

ALL C code should be compiled with -O2 -Wall -W(aka -Wextra). And _maybe_
also with -std=xxxx and -pedantic, + splint + valgrind ...

see: http://gcc.gnu.org/onlinedocs/gcc-4.6.2/gcc/Warning-Options.html
-- 
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/devel



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux