Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
aptonline opened this issue Dec 2, 2022 · 3 comments
Closed

Comments

@aptonline
Copy link

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
Copy link

aandnota commented Dec 2, 2022

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
Copy link
Owner

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

@aptonline
Copy link
Author

Worked a treat, thanks for the heads up :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants