VitaSmith / cdecrypt

Decrypt Wii U NUS content — Forked from: https://code.google.com/archive/p/cdecrypt/
Other
345 stars 25 forks source link

Compiling for Mac gives error [-Werror,-Wunused-but-set-variable] #8

Closed aptonline closed 1 year ago

aptonline commented 1 year ago

When running make in the cdecrypt folder I get the following errors:

[C] cdecrypt.c
cdecrypt.c:220:14: error: variable 'written' set but not used [-Werror,-Wunused-but-set-variable]
    uint64_t written = 0;
             ^
cdecrypt.c:304:14: error: variable 'written' set but not used [-Werror,-Wunused-but-set-variable]
    uint64_t written = 0;
             ^
2 errors generated.
make: *** [cdecrypt.o] Error 1
aandnota commented 1 year ago

Got these same errors today.

cdecrypt.c:220:14: error: variable 'written' set but not used [-Werror,-Wunused-but-set-variable] uint64_t written = 0; ^ cdecrypt.c:304:14: error: variable 'written' set but not used [-Werror,-Wunused-but-set-variable] uint64_t written = 0; ^ 2 errors generated. make: *** [cdecrypt.o] Error 1

VitaSmith commented 1 year ago

Please clone the latest git source. This has been fixed in git (#7).

aptonline commented 1 year ago

Worked a treat, thanks for the heads up :)