When I compile the following snippet of code, I receive the warning message "warning: control reaches end of non-void function"
enum Statetype handleNormalState(int c) {
if (c == '/'){
state = slash;
}
else if (c == '"') {
state = charstr;
putchar(c);
}
else if (c == '\'') {
state = charcon;
putchar(c);
}
else {
state = normal;
putchar(c);
}
}
How can I resolve this?