Skip to main content
4 events
when toggle format what by license comment
Sep 3, 2016 at 21:09 comment added Keith Thompson You explained how to make the compiler complain. That's certainly useful information, but the question was why the compiler doesn't complain in the first place.
Sep 3, 2016 at 20:54 comment added Parnab Sanyal He said that The compiler compiles the below code without any error or warning. That is why I mentioned those flags. And Yes you are correct. I should have asked him whether he uses gcc or any other compiler. @KeithThompson
Sep 3, 2016 at 20:38 comment added Keith Thompson Those flags are specific to gcc (and compilers that support its options). And this doesn't really answer the question. A conforming C compiler is not required to issue any diagnostic for the code in the question.
Sep 3, 2016 at 19:46 history answered Parnab Sanyal CC BY-SA 3.0