This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/53069] New: expected warnings are not given


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]