I'm somewhat dangerous in C, not an expert by any means. I decided to rip off the bandaid and learn c++ as I want to use the Qt libraries. So I've been going thru and messing with the tutorials here which are really nice.
gcc -Wall has really helped me a lot in the past... but I noticed I just wasn't I'm not getting many warnings I to use it with g++, so I tried:
given code in file testwall.c:
1 2 3
int main(int argc, char **argv)
{
}
gcc -Wall testwall.c gives a: warning: control reaches end of non-void function [-Wreturn-type]
g++ -Wall says nothing at all about this.
Is there a way to ask for maximum warning level that I should know about?
In any case, unless both -std=<some actual standard> and -pedantic-errors are present, GNU compilers assume that the code is in some non-standard GNU dialect.