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

compile warning: too many arguments for format #36

Open
GoogleCodeExporter opened this issue Mar 24, 2015 · 0 comments
Open

compile warning: too many arguments for format #36

GoogleCodeExporter opened this issue Mar 24, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem:
svn checkout http://truecrack.googlecode.com/svn/ truecrack-read-only
cd truecrack-read-only/
./configure --enable-cpu
make


Warning:
gcc -c -g -I./Common/ -I./Crypto/ -I./Cuda/ -I./Main/ -I./ 
-I/usr/local/cuda/include/    Main/Main.c -o Main.o
Main/Main.c: In function ‘print_usage’:
Main/Main.c:45:3: warning: too many arguments for format [-Wformat-extra-args]
   , program_name, program_name, program_name, program_name);
   ^


Fix:
--- src/Main/Main.c     (revision 61)
+++ src/Main/Main.c     (working copy)
@@ -42,7 +42,7 @@
                " %s -t truecrypt_file -w passwords_file [-k ripemd160 | -k sha512 | -k whirlpool] [-e aes | -e serpent | -e twofish] [-a blocks] [-b] [-H] [-r number]\n"
                "Usage for Alphabet attack:\n"
                " %s -t truecrypt_file -c alphabet [-s minlength] -m maxlength [-k ripemd160 | -k sha512 | -k whirlpool] [-e aes | -e serpent | -e twofish] [-a blocks] [-b] [-H] [-r number]\n"
-               , program_name, program_name, program_name, program_name);
+               , program_name, program_name);
     fprintf (stream, "\nOptions:\n"
                " -h --help                                     Display this information.\n"
                " -t --truecrypt <truecrypt_file>               Truecrypt volume file.\n"


Original issue reported on code.google.com by aapo.rantalainen on 13 Feb 2014 at 11:39

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

No branches or pull requests

1 participant