|
Message-ID: <2738f26511bdc537863905a64ae78179@smtp.hushmail.com> Date: Tue, 01 May 2012 23:57:05 +0200 From: magnum <john.magnum@...hmail.com> To: john-dev@...ts.openwall.com Subject: wpapsk.h warnings Lukas, I get these warnings when building. The first one looks like an actual bug to me, or maybe I misunderstand the code: In file included from opencl_wpapsk_fmt.c:15:0: wpapsk.h: In function ‘decode_hccap’: wpapsk.h:102:9: warning: array subscript is above array bounds [-Warray-bounds] The array is char[6] but you write all the way to 118 * 3, no? These ones are probably "cosmetic". I think you can mute them using a define in hccap2john.c that ifdefs out the unused code: In file included from hccap2john.c:18:0: wpapsk.h:126:43: warning: ‘struct fmt_main’ declared inside parameter list [enabled by default] wpapsk.h:126:43: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default] wpapsk.h:111:14: warning: ‘binary’ defined but not used [-Wunused-function] wpapsk.h:119:14: warning: ‘salt’ defined but not used [-Wunused-function] wpapsk.h:126:12: warning: ‘valid’ defined but not used [-Wunused-function] wpapsk.h:165:13: warning: ‘set_salt’ defined but not used [-Wunused-function] wpapsk.h:172:13: warning: ‘set_key’ defined but not used [-Wunused-function] wpapsk.h:179:14: warning: ‘get_key’ defined but not used [-Wunused-function] wpapsk.h:211:13: warning: ‘wpapsk_postprocess’ defined but not used [-Wunused-function] wpapsk.h:230:12: warning: ‘binary_hash_0’ defined but not used [-Wunused-function] wpapsk.h:243:12: warning: ‘binary_hash_1’ defined but not used [-Wunused-function] wpapsk.h:248:12: warning: ‘binary_hash_2’ defined but not used [-Wunused-function] wpapsk.h:253:12: warning: ‘binary_hash_3’ defined but not used [-Wunused-function] wpapsk.h:258:12: warning: ‘binary_hash_4’ defined but not used [-Wunused-function] wpapsk.h:263:12: warning: ‘binary_hash_5’ defined but not used [-Wunused-function] wpapsk.h:268:12: warning: ‘binary_hash_6’ defined but not used [-Wunused-function] wpapsk.h:273:12: warning: ‘get_hash_0’ defined but not used [-Wunused-function] wpapsk.h:287:12: warning: ‘get_hash_1’ defined but not used [-Wunused-function] wpapsk.h:293:12: warning: ‘get_hash_2’ defined but not used [-Wunused-function] wpapsk.h:299:12: warning: ‘get_hash_3’ defined but not used [-Wunused-function] wpapsk.h:305:12: warning: ‘get_hash_4’ defined but not used [-Wunused-function] wpapsk.h:311:12: warning: ‘get_hash_5’ defined but not used [-Wunused-function] wpapsk.h:317:12: warning: ‘get_hash_6’ defined but not used [-Wunused-function] wpapsk.h:323:12: warning: ‘cmp_all’ defined but not used [-Wunused-function] wpapsk.h:334:12: warning: ‘cmp_one’ defined but not used [-Wunused-function] wpapsk.h:345:12: warning: ‘cmp_exact’ defined but not used [-Wunused-function] magnum
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.