hashcat / princeprocessor

Standalone password candidate generator using the PRINCE algorithm
Other
425 stars 98 forks source link

Compiler warning in mpz_int128.h #21

Closed jsteube closed 9 years ago

jsteube commented 9 years ago

@magnumripper See here:

mpz_int128.h: In function ‘_mpz_set_str’: mpz_int128.h:116:2: warning: implicit declaration of function ‘strncasecmp’ [-Wimplicit-function-declaration] if (!strncasecmp(str, "0x", 2)) {

I'm using gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1)

magnumripper commented 9 years ago

It's a compiler bug, false positive. It disappears with less than -O2 or if you put a debug print in there :-) I bet it's not present in gcc-4.7 (but I know it's present in gcc-4.9).

https://github.com/magnumripper/JohnTheRipper/issues/1029

magnumripper commented 9 years ago

Oh, wait I'm confused, lol. I thought you meant another warning.