kena...@gmail.com
unread,Apr 14, 2013, 7:35:39 PM4/14/13You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
I've seen numerous posts regarding disabling the "set but unused" warning message. I'm having the opposite problem; I can't get this warning to occur. Given the simple program
/* test.C */
int main() {
int x;
x = 1;
printf("hi\n");
return 0;
}
Compiling this with g++ 4.4.0 (the latest we have installed for official builds) and using 'Wall -Wextra' I get no compiler warning about the 'x = 1'. I even specified '-Wunused' but still no warning. I need this warning to preempt warnigns generatied by our code analysis program (Coverity).
I've seen in some other posts that g++ 4.6.0 has this warning as default, but that's not an option. Is there any way to enable this using the level of g++ we have installed?