OSDN Git Service

Fix gcc -Wall warnings in libuuid
authorTheodore Ts'o <tytso@mit.edu>
Sat, 7 Jun 2008 15:53:20 +0000 (11:53 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 7 Jun 2008 15:53:20 +0000 (11:53 -0400)
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
lib/uuid/tst_uuid.c

index 47ff06c..086d35c 100644 (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];