Skip to content

Instantly share code, notes, and snippets.

@jonm
Created October 4, 2015 01:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jonm/48491024b1e94a9de676 to your computer and use it in GitHub Desktop.
Save jonm/48491024b1e94a9de676 to your computer and use it in GitHub Desktop.
the `special` function is missing a return value in one case
[~/src/SillyMUD/src]$ make
gcc -g -DIMPL_SECURITY -DNEW_RENT -DLEVEL_LOSS -DNEWEXP -DGROUP_NAMES -DIMPL_SECURITY -DNEW_RENT -DLEVEL_LOSS -DNEWEXP -DGROUP_NAMES -c -o interpreter.o interpreter.c
...
interpreter.c:450:5: error: non-void function 'special' should return a value [-Wreturn-type]
return;
^
...
16 warnings and 1 error generated.
make: *** [interpreter.o] Error 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment