john
john copied to clipboard
Clang 15 new deprecation warnings
gpg2john.c:1632:20: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
(*tag_func[tag])(len, 1, partial, hash); // first packet (possibly only one if partial is false).
^
gpg2john.c:1654:21: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
(*tag_func[tag])(len, 0, partial, hash); // subsquent packets.
^
gpg2john.c:1702:27: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
(*sigsub_func[subtype])(len);
^
gpg2john.c:1737:27: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
(*uatsub_func[subtype])(len);
4 warnings generated.
Also, this warning on loader, which seems new to me:
loader.c:1391:12: warning: variable 'ctr' set but not used [-Wunused-but-set-variable]
int hash, ctr = 0;
loader.c:1391:12: warning: variable 'ctr' set but not used [-Wunused-but-set-variable]
Looks like this one was fixed by commits referenced here.