[Xfce4-commits] r29924 - in xfce4-dev-tools/trunk: . m4macros
aliov at xfce.org
Wed May 20 09:02:12 CEST 2009
Brian J. Tarricone wrote:
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
-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).
> Xfce4-dev mailing list
> Xfce4-dev at xfce.org
Send unlimited messages for free to all destinations with DBus.
More information about the Xfce4-dev