SHA256
1
0
forked from pool/file
file/file-4.20-unused.dif

29 lines
628 B
Plaintext

--- src/file.c
+++ src/file.c 2007-04-05 17:04:50.607194194 +0200
@@ -358,7 +358,7 @@ main(int argc, char *argv[])
private void
/*ARGSUSED*/
-load(const char *m __unused, int flags)
+load(const char *m __attr_unused__, int flags)
{
if (magic)
return;
--- src/file.h
+++ src/file.h 2007-04-05 17:04:35.237181956 +0200
@@ -79,11 +79,11 @@
#endif
#endif
-#ifndef __unused
+#ifndef __attr_unused__
#if __GNUC_PREREQ__(2, 7)
-#define __unused __attribute__((__unused__))
+#define __attr_unused__ __attribute__((__unused__))
#else
-#define __unused /* delete */
+#define __attr_unused__ /* delete */
#endif
#endif