]> granicus.if.org Git - file/commitdiff
don't let gcc optimize out our RCS id.
authorChristos Zoulas <christos@zoulas.com>
Sun, 24 Feb 2008 01:35:58 +0000 (01:35 +0000)
committerChristos Zoulas <christos@zoulas.com>
Sun, 24 Feb 2008 01:35:58 +0000 (01:35 +0000)
src/file.h

index c4c64a5f33ac5540a2c4d11bdaa25f5602bb5ea5..ee001fe1a0fd079e12cde6654cf7cc0a58869f10 100644 (file)
@@ -27,7 +27,7 @@
  */
 /*
  * file.h - definitions for file(1) program
- * @(#)$File: file.h,v 1.101 2008/02/24 01:16:08 rrt Exp $
+ * @(#)$File: file.h,v 1.102 2008/02/24 01:35:58 christos Exp $
  */
 
 #ifndef __file_h__
@@ -379,6 +379,9 @@ int asprintf(char **ptr, const char *format_string, ...);
 #define O_BINARY       0
 #endif
 
+#ifdef __GNUC__
+static const char *rcsid(const char *) __attribute__((__used__));
+#endif
 #define FILE_RCSID(id) \
 static const char *rcsid(const char *p) { \
        return rcsid(p = id); \