[Bug c/44598] -Wunused-variable miss 'static const char x[] = "";'
dimhen at gmail dot com
gcc-bugzilla@gcc.gnu.org
Sun Jun 20 07:32:00 GMT 2010
------- Comment #2 from dimhen at gmail dot com 2010-06-20 07:32 -------
(In reply to comment #1)
Well...
1) so, gcc miss 'set-but-not-used' warning in testcase?
2) in testcase there are no more code to which 'x' may be inlined. Yes?
3) change test to
static const char x[] = "";
static const char const * b = "";
changes nothing in diagnistics
4) add -O3 -Wextra changes nothing in diagnistics
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44598
More information about the Gcc-bugs
mailing list