Skip to content

Instantly share code, notes, and snippets.

@jonm
Created October 4, 2015 01:34
Show Gist options
  • Save jonm/c1249cc6655e84b84211 to your computer and use it in GitHub Desktop.
Save jonm/c1249cc6655e84b84211 to your computer and use it in GitHub Desktop.
the `shop_keeper` function is missing return values
[~/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 shop.o shop.c
...
shop.c:583:5: error: non-void function 'shop_keeper' should return a value
[-Wreturn-type]
return;
^
shop.c:588:5: error: non-void function 'shop_keeper' should return a value
[-Wreturn-type]
return;
^
shop.c:594:5: error: non-void function 'shop_keeper' should return a value
[-Wreturn-type]
return;
^
...
7 warnings and 3 errors generated.
make: *** [shop.o] Error 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment