// gcc 3.4.5 and 4.0.2 produce warning output
#define STATIC
// no warning
#define STATIC static
STATIC int foo(void)
{
int i = 47;
i++;
}
int bar(void)
{
if (foo()) return 1;
return 0;
}
--
Summary: Missing "warning: control reaches end of non-void
function" in static function
Product: gcc
Version: 4.0.2
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: ch12 at os dot inf dot tu-dresden dot de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24252