sorib / truecrack

Automatically exported from code.google.com/p/truecrack
GNU General Public License v3.0
0 stars 0 forks source link

compile warning: too many arguments for format #36

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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