]> granicus.if.org Git - yasm/commitdiff
RCSID() breaks under DJGPP because of "__unused". Removing __unused shouldn't
authorPeter Johnson <peter@tortall.net>
Sun, 21 Oct 2001 00:13:24 +0000 (00:13 -0000)
committerPeter Johnson <peter@tortall.net>
Sun, 21 Oct 2001 00:13:24 +0000 (00:13 -0000)
cause any problems, really, so just removed it.

svn path=/trunk/yasm/; revision=291

libyasm/util.h
src/util.h
util.h

index 670275c673b7fe924f16e7bb8c5a43987db05cf8..116a1c83bec8037cf6ae6c7708a821056850d1ee 100644 (file)
@@ -78,7 +78,7 @@ void *xrealloc(void *oldmem, size_t size);
 #  ifdef __ELF__
 #   define RCSID(s)    __asm__(".ident\t\"" s "\"")
 #  else
-#   define RCSID(s)    static const char rcsid[] __unused = s
+#   define RCSID(s)    static const char rcsid[] = s
 #  endif
 # else
 #  define RCSID(s)     static const char rcsid[] = s
index 670275c673b7fe924f16e7bb8c5a43987db05cf8..116a1c83bec8037cf6ae6c7708a821056850d1ee 100644 (file)
@@ -78,7 +78,7 @@ void *xrealloc(void *oldmem, size_t size);
 #  ifdef __ELF__
 #   define RCSID(s)    __asm__(".ident\t\"" s "\"")
 #  else
-#   define RCSID(s)    static const char rcsid[] __unused = s
+#   define RCSID(s)    static const char rcsid[] = s
 #  endif
 # else
 #  define RCSID(s)     static const char rcsid[] = s
diff --git a/util.h b/util.h
index 670275c673b7fe924f16e7bb8c5a43987db05cf8..116a1c83bec8037cf6ae6c7708a821056850d1ee 100644 (file)
--- a/util.h
+++ b/util.h
@@ -78,7 +78,7 @@ void *xrealloc(void *oldmem, size_t size);
 #  ifdef __ELF__
 #   define RCSID(s)    __asm__(".ident\t\"" s "\"")
 #  else
-#   define RCSID(s)    static const char rcsid[] __unused = s
+#   define RCSID(s)    static const char rcsid[] = s
 #  endif
 # else
 #  define RCSID(s)     static const char rcsid[] = s