From: Niels Möller Date: Thu, 21 Nov 2002 22:28:14 +0000 (+0100) Subject: * desdata.c: Include config.h, to get definition of UNUSED. X-Git-Tag: nettle_1.7_release_20030311~114 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1283d5f6ace4cf8514e743c5563e07ecad5452cf;p=thirdparty%2Fnettle.git * desdata.c: Include config.h, to get definition of UNUSED. * shadata.c: Likewise. Rev: src/nettle/desdata.c:1.2 Rev: src/nettle/shadata.c:1.2 --- diff --git a/desdata.c b/desdata.c index c078e86e..bf37ec18 100644 --- a/desdata.c +++ b/desdata.c @@ -11,15 +11,14 @@ * */ +#if HAVE_CONFIG_H +# include "config.h" +#endif + #include "desinfo.h" #include "desCode.h" -#if __GNUC__ -# define UNUSED __attribute__ ((__unused__)) -#else -# define UNUSED -#endif /* list of weak and semi-weak keys diff --git a/shadata.c b/shadata.c index 6934b51a..d898c665 100644 --- a/shadata.c +++ b/shadata.c @@ -1,3 +1,6 @@ +#if HAVE_CONFIG_H +# include "config.h" +#endif #include #include @@ -13,7 +16,7 @@ static const unsigned primes[64] = 283, 293, 307, 311 }; -int main(int argc, char **argv) +int main(int argc UNUSED, char **argv UNUSED) { int i; static const double third = 1.0/3;