public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/53069] New: expected warnings are not given
@ 2012-04-22 6:49 santoshg550 at gmail dot com
2012-04-22 7:16 ` [Bug c/53069] " pinskia at gcc dot gnu.org
2013-10-21 20:54 ` mpolacek at gcc dot gnu.org
0 siblings, 2 replies; 3+ messages in thread
From: santoshg550 at gmail dot com @ 2012-04-22 6:49 UTC (permalink / raw)
To: gcc-bugs
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.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-10-21 20:54 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-22 6:49 [Bug c/53069] New: expected warnings are not given santoshg550 at gmail dot com
2012-04-22 7:16 ` [Bug c/53069] " pinskia at gcc dot gnu.org
2013-10-21 20:54 ` mpolacek at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).