john icon indicating copy to clipboard operation
john copied to clipboard

Clang 15 new deprecation warnings

Open claudioandre-br opened this issue 2 years ago • 1 comments

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;

claudioandre-br avatar Apr 02 '23 16:04 claudioandre-br

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.

solardiz avatar Jun 04 '24 13:06 solardiz