prog.c: In function 'test_switch':
prog.c:8:8: error: 'some_condition' undeclared (first use in this function)
if (some_condition)
^
prog.c:8:8: note: each undeclared identifier is reported only once for each function it appears in
prog.c:9:5: warning: implicit declaration of function 'some_function' [-Wimplicit-function-declaration]
some_function();
^
prog.c:18:3: warning: implicit declaration of function 'other_function' [-Wimplicit-function-declaration]
other_function();
^
prog.c:4:14: warning: variable 'state' set but not used [-Wunused-but-set-variable]
static int state;
^
prog.c: In function 'test_goto':
prog.c:26:17: error: 'some_condition' undeclared (first use in this function)
if (i == 1 && some_condition)
^
prog.c:24:14: warning: variable 'state' set but not used [-Wunused-but-set-variable]
static int state;
^