Gcc will sometimes let you get away with stuff you really should not be doing. There are flags you can set that determine how many warnings it will give you. I'd start with -W and -Wall, but there are others if you read the man page. if you want all warnings to be treated as errors, use -Werror. FWIW, you really should nopt leave any warnings in programs.
|