[Bug c/70958] Flag -Wreturn-type does not warn about lacking return statement in main

2016-05-04 Thread carlos.maziero at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70958 Carlos Maziero changed: What|Removed |Added Severity|minor |trivial

[Bug c/70958] Flag -Wreturn-type does not warn about lacking return statement in main

2016-05-04 Thread carlos.maziero at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70958 --- Comment #2 from Carlos Maziero --- I understand you explanation and agree with it, but I still have some concerns. For instance, when using the -std=c89 flag, GCC 5.3.1 complains about the '//' comments, which are not allowed in C89 standard.

[Bug c/70958] New: Flag -Wreturn-type does not warn about lacking return statement in main

2016-05-04 Thread carlos.maziero at gmail dot com
Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: carlos.maziero at gmail dot com Target Milestone: --- The GCC version provided with Ubuntu 16.04 (5.3.1 20160413) does not warn when the main function lacks a return statement, when