When I compile the C program below, I get this warning:
‘noreturn’ function does return
. This is the function:
void hello(void){
int i;
i=1;
}
Why could it be happening?
All the call to this function is hello();
EDIT: The full error output:
home.c: In function ‘hello’:
hhme.c:838:7: error: variable ‘i’ set but not used [-Werror=unused-but-set-variable]
home.c:840:1: error: ‘noreturn’ function does return [-Werror]
cc1: all warnings being treated as errors
make: *** [home.o] Error 1