Hi Petr, EMG,
Petr:
Thanks for tip. I'm testing it but it doesn't catch this
double initialization problem. GCC docs say it's enabled
by -Wall which is the default in Harbour.
EMG:
Thanks. -ansi helped me to catch non-ANSI comments in GTWVG
code (will test whole Harbour), but it also doesn't catch this
problem. -pedantic is too pedantic for our source :) and also
doesn't catch this warning.
More tips are welcome.
Brgds,
Viktor
On 2009.06.24., at 16:48, Petr Chornyj wrote:
vszakats wrote:
* contrib/gtwvg/wvgsink.c
! Fixed BCC warning after recent change.
(BTW, does anyone know a switch to enable such warning:
"'x' is assigned a value that is never used" with *MinGW* ?
It's annoying that BCC catches it, while other compilers
don't. I'm now only using BCC when creating builds.)
gcc --help=warning
-Wunused Enable all -Wunused- warnings
-Wunused-function Warn when a function is unused
-Wunused-label Warn when a label is unused
-Wunused-macros Warn about macros defined in the main file
that
are not used
-Wunused-parameter Warn when a function parameter is unused
-Wunused-value Warn when an expression value is unused
-Wunused-variable Warn when a variable is unused
Regards,
Petr
--
View this message in context:
http://www.nabble.com/SF.net-SVN%3A-harbour-project%3A-11515--trunk-harbour-tp24185514p24186296.html
Sent from the Harbour - Dev mailing list archive at Nabble.com.
_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour
_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour