gcc -O6 -Wall -D_FORTIFY_SOURCE=2 -c -o crc.o crc.c gcc -O6 -Wall -D_FORTIFY_SOURCE=2 -c -o mktmptbl.o mktmptbl.c mktmptbl.c: In function ‘preCompTemp’: mktmptbl.c:58:5: warning: implicit declaration of function ‘memset’ [-Wimplicit-function-declaration] 58 | memset(numEntries, 0, sizeof(numEntries)); | ^~~~~~ mktmptbl.c:47:1: note: include ‘’ or provide a declaration of ‘memset’ 46 | #include "mktmptbl.h" +++ |+#include 47 | mktmptbl.c:58:5: warning: incompatible implicit declaration of built-in function ‘memset’ [-Wbuiltin-declaration-mismatch] 58 | memset(numEntries, 0, sizeof(numEntries)); | ^~~~~~ mktmptbl.c:58:5: note: include ‘’ or provide a declaration of ‘memset’ mktmptbl.c: In function ‘initMulTab’: mktmptbl.c:93:5: warning: incompatible implicit declaration of built-in function ‘memset’ [-Wbuiltin-declaration-mismatch] 93 | memset(mTab2Counter, 0, sizeof(mTab2Counter)); | ^~~~~~ mktmptbl.c:93:5: note: include ‘’ or provide a declaration of ‘memset’ mktmptbl.c: At top level: mktmptbl.c:43:13: warning: ‘RCSID’ defined but not used [-Wunused-variable] 43 | static char RCSID[]="$Id: mktmptbl.c,v 1.9 2002/11/02 15:12:06 lucifer Exp $"; | ^~~~~ gcc -O6 -Wall -D_FORTIFY_SOURCE=2 -c -o main.o main.c crc.c:24:13: warning: ‘RCSID’ defined but not used [-Wunused-variable] 24 | static char RCSID[]="$Id: crc.c,v 1.3 1997/09/18 18:07:24 lucifer Release1_2_1 $"; | ^~~~~ gcc -O6 -Wall -D_FORTIFY_SOURCE=2 -c -o stage1.o stage1.c main.c:131:6: warning: return type of ‘main’ is not ‘int’ [-Wmain] 131 | void main( int argc, char **argv ) | ^~~~ main.c:70:13: warning: ‘RCSID’ defined but not used [-Wunused-variable] 70 | static char RCSID[]="$Id: main.c,v 1.15 2002/11/12 16:58:02 lucifer Exp $"; | ^~~~~ gcc -O6 -Wall -D_FORTIFY_SOURCE=2 -c -o keystuff.o keystuff.c stage1.c:41:13: warning: ‘RCSID’ defined but not used [-Wunused-variable] 41 | static char RCSID[]="$Id: stage1.c,v 1.8 2002/01/31 16:27:08 lucifer Exp $"; | ^~~~~ gcc -O6 -Wall -D_FORTIFY_SOURCE=2 -c -o stage2.o stage2.c keystuff.c:32:13: warning: ‘RCSID’ defined but not used [-Wunused-variable] 32 | static char RCSID[]="$Id: keystuff.c,v 1.5 2002/11/02 15:12:06 lucifer Exp $"; | ^~~~~ gcc -O6 -Wall -D_FORTIFY_SOURCE=2 -c -o stage3.o stage3.c stage2.c:56:13: warning: ‘RCSID’ defined but not used [-Wunused-variable] 56 | static char RCSID[]="$Id: stage2.c,v 1.16 2003/01/03 15:18:18 lucifer Exp $"; | ^~~~~ stage2.c: In function ‘recursion2’: stage2.c:293:40: warning: ‘oldValue’ may be used uninitialized [-Wmaybe-uninitialized] 293 | if( !hadIt || oldValue != newKey ) | ~~~~~~~~~^~~~~~~~~ stage2.c:263:50: note: ‘oldValue’ was declared here 263 | uword key2j, key2iminus1, key2iminus2, newKey, oldValue; | ^~~~~~~~ In function ‘recursion2’, inlined from ‘buildKey2Lists’ at stage2.c:313:5: stage2.c:293:40: warning: ‘oldValue’ may be used uninitialized [-Wmaybe-uninitialized] 293 | if( !hadIt || oldValue != newKey ) | ~~~~~~~~~^~~~~~~~~ stage2.c: In function ‘buildKey2Lists’: stage2.c:263:50: note: ‘oldValue’ was declared here 263 | uword key2j, key2iminus1, key2iminus2, newKey, oldValue; | ^~~~~~~~ In function ‘recursion2’, inlined from ‘recursion2’ at stage2.c:300:7, inlined from ‘buildKey2Lists’ at stage2.c:313:5: stage2.c:293:40: warning: ‘oldValue’ may be used uninitialized [-Wmaybe-uninitialized] 293 | if( !hadIt || oldValue != newKey ) | ~~~~~~~~~^~~~~~~~~ stage2.c: In function ‘buildKey2Lists’: stage2.c:263:50: note: ‘oldValue’ was declared here 263 | uword key2j, key2iminus1, key2iminus2, newKey, oldValue; | ^~~~~~~~ In function ‘recursion2’, inlined from ‘recursion2’ at stage2.c:300:7, inlined from ‘recursion2’ at stage2.c:300:7, inlined from ‘buildKey2Lists’ at stage2.c:313:5: stage2.c:293:40: warning: ‘oldValue’ may be used uninitialized [-Wmaybe-uninitialized] 293 | if( !hadIt || oldValue != newKey ) | ~~~~~~~~~^~~~~~~~~ stage2.c: In function ‘buildKey2Lists’: stage2.c:263:50: note: ‘oldValue’ was declared here 263 | uword key2j, key2iminus1, key2iminus2, newKey, oldValue; | ^~~~~~~~ gcc -O6 -Wall -D_FORTIFY_SOURCE=2 -c -o exfunc.o exfunc.c stage3.c:51:13: warning: ‘RCSID’ defined but not used [-Wunused-variable] 51 | static char RCSID[]="$Id: stage3.c,v 1.10 2002/12/30 18:27:25 lucifer Exp $"; | ^~~~~ gcc -O6 -Wall -D_FORTIFY_SOURCE=2 -c -o readhead.o readhead.c exfunc.c:48:13: warning: ‘RCSID’ defined but not used [-Wunused-variable] 48 | static char RCSID[]="$Id: exfunc.c,v 1.9 2003/01/05 14:40:37 lucifer Exp $"; | ^~~~~ gcc -O6 -Wall -D_FORTIFY_SOURCE=2 -c -o writehead.o writehead.c readhead.c: In function ‘read_local’: readhead.c:318:21: warning: unused variable ‘sig’ [-Wunused-variable] 318 | unsigned long sig; | ^~~ readhead.c: At top level: readhead.c:71:13: warning: ‘RCSID’ defined but not used [-Wunused-variable] 71 | static char RCSID[]="$Id: readhead.c,v 1.13 2003/01/05 14:40:37 lucifer Exp $"; | ^~~~~ gcc -O6 -Wall -D_FORTIFY_SOURCE=2 -c -o zipdecrypt.o zipdecrypt.c writehead.c: In function ‘write_sig’: writehead.c:64:52: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘int’ [-Wformat=] 64 | fprintf( stderr, "Write unknown signature: 0x%08lx\n", sigType ); | ~~~~^ ~~~~~~~ | | | | | int | long unsigned int | %08x writehead.c: At top level: writehead.c:33:13: warning: ‘RCSID’ defined but not used [-Wunused-variable] 33 | static char RCSID[]="$Id: writehead.c,v 1.4 2003/01/05 14:40:37 lucifer Exp $"; | ^~~~~ gcc -O6 -Wall -D_FORTIFY_SOURCE=2 -c -o debug.o debug.c debug.c:17:13: warning: ‘RCSID’ defined but not used [-Wunused-variable] 17 | static char RCSID[]="$Id: debug.c,v 1.2 2002/01/30 15:25:26 lucifer Exp $"; | ^~~~~ gcc -O6 -Wall -D_FORTIFY_SOURCE=2 -c -o zdmain.o zdmain.c zdmain.c:38:6: warning: return type of ‘main’ is not ‘int’ [-Wmain] 38 | void main( int argc, char **argv ) | ^~~~ zdmain.c:28:13: warning: ‘RCSID’ defined but not used [-Wunused-variable] 28 | static char RCSID[]="$Id: zdmain.c,v 1.4 2002/12/28 17:01:42 lucifer Exp $"; | ^~~~~ gcc -O6 -Wall -D_FORTIFY_SOURCE=2 -c -o findkey.o findkey.c zipdecrypt.c: In function ‘zipdecrypt’: zipdecrypt.c:244:47: warning: comparison of constant ‘0’ with boolean expression is always false [-Wbool-compare] 244 | err = (!read_ddesc(infile, 0) < 0); | ^ zipdecrypt.c:244:47: warning: logical not is only applied to the left hand side of comparison [-Wlogical-not-parentheses] zipdecrypt.c:244:24: note: add parentheses around left hand side expression to silence this warning 244 | err = (!read_ddesc(infile, 0) < 0); | ^~~~~~~~~~~~~~~~~~~~~~ | ( ) zipdecrypt.c: At top level: zipdecrypt.c:76:13: warning: ‘RCSID’ defined but not used [-Wunused-variable] 76 | static char RCSID[]="$Id: zipdecrypt.c,v 1.16 2003/01/05 14:40:37 lucifer Exp $"; | ^~~~~ gcc -O6 -Wall -D_FORTIFY_SOURCE=2 -c -o extract.o extract.c findkey.c:59:6: warning: return type of ‘main’ is not ‘int’ [-Wmain] 59 | void main( int argc, char **argv ) | ^~~~ findkey.c:48:13: warning: ‘RCSID’ defined but not used [-Wunused-variable] 48 | static char RCSID[]="$Id: findkey.c,v 1.6 2002/11/02 15:12:06 lucifer Exp $"; | ^~~~~ gcc -O6 -Wall -D_FORTIFY_SOURCE=2 -c -o makekey.o makekey.c makekey.c: In function ‘usage’: makekey.c:24:5: warning: implicit declaration of function ‘exit’ [-Wimplicit-function-declaration] 24 | exit( 1 ); | ^~~~ makekey.c:18:1: note: include ‘’ or provide a declaration of ‘exit’ 17 | #include "crc.h" +++ |+#include 18 | makekey.c:24:5: warning: incompatible implicit declaration of built-in function ‘exit’ [-Wbuiltin-declaration-mismatch] 24 | exit( 1 ); | ^~~~ makekey.c:24:5: note: include ‘’ or provide a declaration of ‘exit’ makekey.c: At top level: makekey.c:27:6: warning: return type of ‘main’ is not ‘int’ [-Wmain] 27 | void main( int argc, char **argv ) | ^~~~ makekey.c:19:13: warning: ‘RCSID’ defined but not used [-Wunused-variable] 19 | static char RCSID[]="$Id: makekey.c,v 1.1 1997/02/15 09:44:44 lucifer Release1_2_1 $"; | ^~~~~ gcc -o pkcrack -O6 -Wall crc.o mktmptbl.o main.o stage1.o keystuff.o stage2.o stage3.o exfunc.o readhead.o writehead.o zipdecrypt.o debug.o extract.c:93:6: warning: return type of ‘main’ is not ‘int’ [-Wmain] 93 | void main(int argc, char *argv[]) | ^~~~ extract.c:76:13: warning: ‘RCSID’ defined but not used [-Wunused-variable] 76 | static char RCSID[]="$Id: extract.c,v 1.12 2002/12/28 16:09:59 lucifer Exp $"; | ^~~~~ gcc -o zipdecrypt -O6 -Wall zdmain.o zipdecrypt.o crc.o keystuff.o writehead.o readhead.o gcc -o findkey -O6 -Wall findkey.o crc.o stage3.o keystuff.o mktmptbl.o gcc -o extract -O6 -Wall extract.o exfunc.o readhead.o gcc -o makekey -O6 -Wall makekey.o crc.o keystuff.o