1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
|
[kernel] Parsing exit.c (with preprocessing)
[kernel:CERT:MSC:37] exit.c:16: Warning:
Body of function g falls-through. Adding a return statement
/* Generated by Frama-C */
#include "stdlib.h"
int volatile c;
int f(void)
{
int __retres;
if (c) {
__retres = 0;
goto return_label;
}
else quick_exit(1);
return_label: return __retres;
}
void unknown_exit(int i);
int g(void)
{
int __retres;
if (c) {
__retres = 0;
goto return_label;
}
else unknown_exit(1);
/*@ assert missing_return: \false; */ ;
__retres = 0;
return_label: return __retres;
}
void main(void)
{
f();
g();
return;
}
|