[Xfce4-commits] r29924 - in xfce4-dev-tools/trunk: . m4macros

Ali Abdallah aliov at xfce.org
Wed May 20 09:02:12 CEST 2009


Brian J. Tarricone wrote:
> -Wall
> -Wextra
> -Wno-missing-field-initializers
> -Wno-unused-parameter
> -Wold-style-definition
> -Wdeclaration-after-statement
> -Wmissing-declarations
> -Wredundant-decls
> -Wmissing-noreturn
> -Wshadow
> -Wpointer-arith
> -Wcast-align
> -Wformat-security
> -Winit-self
> -Wmissing-include-dirs
> -Wundef
> -Wmissing-format-attribute
> -Wnested-externs
> -fstack-protector
> -D_FORTIFY_SOURCE=2
>   

Hey,

I read all possible warning flags of gcc, and i came with something 
which might be useful, not necessary to add to xdt-features.m4, but just 
a thought.

-Wdisabled-optimization: with this gcc will emit a warning if it cannot 
optimize a piece code, because it is too complex or something, so one 
can try to improve/simplify the code.

-Wwrite-strings: warning about writing on string constants.
||
-Wunreachable-code: gcc will emit a warning if it thinks that the code 
will never be executed because of a condition that will never be 
satisfied, sometimes it produces wrong warnings and one can discard them 
safely after examining the code, but sometimes yes it tells you about a 
code that will really never be executed (unless the CPU logical unit is 
broken :) ).
||
-Winline, if a function cannot be inlined, but well we never use inline 
functions in Xfce.


So those are just some flags one can play with, but there is no point of 
adding them to xdt-features, (possibly Wdisabled-optimization and 
-Wwrite-strings i like them).

> 	-b
>   

Cheers,
Ali.

> _______________________________________________
> Xfce4-dev mailing list
> Xfce4-dev at xfce.org
> http://foo-projects.org/mailman/listinfo/xfce4-dev
>   


-- 
Send unlimited messages for free to all destinations with DBus.

http://www.freedesktop.org/wiki/Software/dbus




More information about the Xfce4-dev mailing list