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

Cannot compile on macOS 13.2.1 with XCode 14.2 #97

Open
jms1voalte opened this issue Mar 22, 2023 · 0 comments
Open

Cannot compile on macOS 13.2.1 with XCode 14.2 #97

jms1voalte opened this issue Mar 22, 2023 · 0 comments

Comments

@jms1voalte
Copy link

Compiling from commit 8edb00bb on macOS 13.2.1 with XCode 14.2 fails with the following message:

infnoise.c:63:60: error: parameter 'entropy' set but not used [-Werror,-Wunused-but-set-parameter]
bool outputBytes(uint8_t *bytes, uint32_t length, uint32_t entropy, bool writeDevRandom, const char **message) {
                                                           ^
1 error generated.
make: *** [Makefile.macos:28: infnoise.o] Error 1

I see line 92 says entropy = 0; // suppress warning, but this looks like it's just trading one warning for another.

I was able to make it compile by adding -Wno-unused-but-set-parameter to the CFLAGS value in Makefile.macos, and the resulting executable does seem to work (i.e. sudo ./infnoise | dd status=none bs=256 count=1 | hexdump -C produces different random-looking output every time). However, I'm not sure if this is the best way to handle things.

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

1 participant