This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/53069] New: expected warnings are not given
- From: "santoshg550 at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 22 Apr 2012 06:49:14 +0000
- Subject: [Bug c/53069] New: expected warnings are not given
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53069
Bug #: 53069
Summary: expected warnings are not given
Classification: Unclassified
Product: gcc
Version: 4.6.2
Status: UNCONFIRMED
Severity: critical
Priority: P3
Component: c
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: santoshg550@gmail.com
hi,
I am a windows user. Currently, i am using MinGW tools for c language.
I found following two conditions very suspicious about gcc compiler. I am using
cmd.exe (i.e. command prompt of windows) to compile my program.
1.Suppose we declared as int main(void), then we must return a value at end to
operating system. But evenif we didn't do that, gcc doesn't give a warning like
'Function should return a value'.
2.Consider this if statement: if(flag = 0). Error is that instead of '=', there
should be '=='.But the compiler doesn't give a single warning. The behaviour of
executable file is not as per our logic(rather destructable).
Reply me about these two situations as soon as possible. If these two
are corrected in later versions, please inform me how to update my gcc
compiler. And please don't advise me to use any editor like Eclipse or
CodeBlocks.