bug-indent
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 1/2] Fix compiler warnings


From: Petr Písař
Subject: [PATCH 1/2] Fix compiler warnings
Date: Tue, 19 Feb 2013 14:23:20 +0100

---
 src/args.c |  6 ++++++
 src/lexi.c | 10 ----------
 2 files changed, 6 insertions(+), 10 deletions(-)

diff --git a/src/args.c b/src/args.c
index f392cce..abd2a6a 100644
--- a/src/args.c
+++ b/src/args.c
@@ -62,6 +62,10 @@
 /* Argument scanning and profile reading code.  Default parameters are set
  * here as well. */
 
+#ifndef _XOPEN_SOURCE
+#define _XOPEN_SOURCE 500    /* strdup(3) */
+#endif
+
 #include <ctype.h>
 #include <stdio.h>
 #include <stdlib.h>
@@ -174,7 +178,9 @@ static int exp_o    = 0;
 static int exp_orig = 0;
 static int exp_pcs  = 0;
 static int exp_pi   = 0;
+#ifdef PRESERVE_MTIME
 static int exp_pmt  = 0;
+#endif
 static int exp_pro  = 0;
 static int exp_prs  = 0;
 static int exp_psl  = 0;
diff --git a/src/lexi.c b/src/lexi.c
index abc2bfa..ef80e38 100644
--- a/src/lexi.c
+++ b/src/lexi.c
@@ -198,11 +198,6 @@ int main (void)
 #endif
 
 /* Include code generated by gperf */
-#ifdef __GNUC__
-__inline
-#endif
-templ_ty *is_reserved (const char *str, unsigned int len);
-
 #include "gperf.c"
 
 /* Include code generated by gperf for C++ keyword set */
@@ -212,11 +207,6 @@ templ_ty *is_reserved (const char *str, unsigned int len);
 #undef MIN_WORD_LENGTH
 #undef MAX_WORD_LENGTH
 
-#ifdef __GNUC__
-__inline
-#endif
-templ_ty *is_reserved_cc (register const char *str, register unsigned int len);
-
 #include "gperf-cc.c"
 
 /**
-- 
1.8.1.2




reply via email to

[Prev in Thread] Current Thread [Next in Thread]