Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [~/Documents/code/rirc] $ make
- cc -std=c99 -Wall -pedantic -O3 -g -c -o src/bld/input.o src/input.c
- cc -std=c99 -Wall -pedantic -O3 -g -c -o src/bld/net.o src/net.c
- src/net.c:108:17: warning: zero size arrays are an extension [-Wzero-length-array]
- struct in_addr h_addr;
- ^~~~~~
- /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/netdb.h:119:28: note:
- expanded from macro 'h_addr'
- #define h_addr h_addr_list[0] /* address, for backward compatibility */
- ^
- src/net.c:434:11: warning: variable 'cmd' is used uninitialized whenever '&&' condition is false
- [-Wsometimes-uninitialized]
- else if (*++mesg && !(cmd = getarg(&mesg, 1)))
- ^~~~~~~
- src/net.c:436:18: note: uninitialized use occurs here
- else if (streqi(cmd, "JOIN"))
- ^~~
- src/net.c:434:11: note: remove the '&&' if its condition is always true
- else if (*++mesg && !(cmd = getarg(&mesg, 1)))
- ^~~~~~~~~~
- src/net.c:431:11: note: initialize the variable 'cmd' to silence this warning
- char *cmd;
- ^
- = NULL
- 2 warnings generated.
- cc -std=c99 -Wall -pedantic -O3 -g -c -o src/bld/rirc.o src/rirc.c
- cc -std=c99 -Wall -pedantic -O3 -g -c -o src/bld/ui.o src/ui.c
- cc -std=c99 -Wall -pedantic -O3 -g -c -o src/bld/utils.o src/utils.c
- cc -std=c99 -Wall -pedantic -O3 -g -o rirc src/bld/input.o src/bld/net.o src/bld/rirc.o src/bld/ui.o src/bld/utils.o
- [~/Documents/code/rirc] $
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement