This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[~/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 mobact.o mobact.c | |
... | |
mobact.c:452:5: error: non-void function 'AssistFriend' should return a value | |
[-Wreturn-type] | |
return; | |
^ | |
... | |
6 warnings and 1 error generated. | |
make: *** [mobact.o] Error 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[~/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 fight.o fight.c | |
... | |
fight.c:1048:33: error: non-void function 'DamageMessages' should return a value | |
[-Wreturn-type] | |
if (attacktype == SKILL_KICK) return; /* filter out kicks, | |
^ | |
fight.c:1144:11: error: non-void function 'DamageMessages' should return a value | |
[-Wreturn-type] | |
return; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gcc -g -DIMPL_SECURITY -DNEW_RENT -DLEVEL_LOSS -DNEWEXP -DGROUP_NAMES -DIMPL_SECURITY -DNEW_RENT -DLEVEL_LOSS -DNEWEXP -DGROUP_NAMES -c -o spec_procs.o spec_procs.c | |
... | |
spec_procs.c:3280:5: error: non-void function 'bank' should return a value [-Wreturn-type] | |
return; | |
^ | |
... | |
30 warnings and 1 error generated. | |
make: *** [spec_procs.o] Error 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[~/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 board.o board.c | |
... | |
board.c:387:19: error: too many arguments to function call, expected single | |
argument 'buf', have 2 arguments | |
log_msg(buf,0); | |
~~~~~~~ ^ | |
./protos.h:1758:1: note: 'log_msg' declared here | |
void log_msg(char *buf); | |
^ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void log_msg (char *s) { log_sev(s, 1); } /*thought this was a prototype - heheh */ | |
/* This is an excerpt from a DikuMUD-derived codebase. DikuMUD was created by Sebastian Hammer, Michael Seifert</a>, | |
Hans Henrik Stærfeldt, Tom Madsen, and Katja Nyboe. This code is subject to the DikuMud License, as found at | |
https://github.com/jonm/SillyMUD/blob/43344e6dc864de7518c2fc0dbf7b7cf14f5924a2/doc/license.doc | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void board_load_board() { | |
FILE *the_file; | |
int ind; | |
int bnum; | |
char buf[256]; | |
memset(boards, 0, sizeof(boards)); /* Zero out the array, make sure no */ | |
/* Funky pointers are left in the */ | |
/* Allocated space */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gcc -g -DIMPL_SECURITY -DNEW_RENT -DLEVEL_LOSS -DNEWEXP -DGROUP_NAMES -DIMPL_SECURITY -DNEW_RENT -DLEVEL_LOSS -DNEWEXP -DGROUP_NAMES -c -o spec_procs2.o spec_procs2.c | |
... | |
spec_procs2.c:536:8: error: non-void function 'magic_user' should return a value [-Wreturn-type] | |
return; | |
^ | |
spec_procs2.c:541:5: error: non-void function 'magic_user' should return a value [-Wreturn-type] | |
return; | |
^ | |
... | |
spec_procs2.c:1871:8: error: non-void function 'MakeQuest' should return a value [-Wreturn-type] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[~/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 spec_procs3.o spec_procs3.c | |
... | |
spec_procs3.c:806:5: error: non-void function 'turbo_lift' should return a value | |
[-Wreturn-type] | |
return; | |
^ | |
... | |
5 warnings and 1 error generated. | |
make: *** [spec_procs3.o] Error 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[~/src/SillyMUD/src]$ ./dmserver | |
Sat Oct 3 22:30:37 2015 :: Running game on port 4000. | |
chdir: No such file or directory | |
Assertion failed: (0), function main, file comm.c, line 175. | |
Abort trap: 6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int main(void) { | |
#ifdef 0 | |
/* xyzzy */ | |
#endif | |
return 0; | |
} |