jedisct1 / minisign

A dead simple tool to sign files and verify digital signatures.
https://jedisct1.github.io/minisign/
Other
2.07k stars 118 forks source link

exclude other unneeded code for VERIFY_ONLY #139

Closed ryancdotorg closed 7 months ago

ryancdotorg commented 10 months ago

I tried compiling minisign with -DVERIFY_ONLY -Wall -Wextra -pedantic and some warnings were thrown about unused variables/code.

This patch adds additional #ifndef VERIFY_ONLY/#endif blocks around the lines of code triggering the warnings.

In a few places the number of blocks could be reduced by re-ordering declarations, please let me know if you'd like me to do this.