Fix gcc -Wall warnings in libuuid

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
bitmap-optimize
Theodore Ts'o 2008-06-07 11:53:20 -04:00
parent 2c25f7e75a
commit 96f4bb1fbc
1 changed files with 7 additions and 1 deletions

View File

@ -54,8 +54,14 @@ static int test_uuid(const char * uuid, int isValid)
return 0;
}
#ifdef __GNUC__
#define ATTR(x) __attribute__(x)
#else
#define ATTR(x)
#endif
int
main(int argc, char **argv)
main(int argc ATTR((unused)) , char **argv ATTR((unused)))
{
uuid_t buf, tst;
char str[100];