[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemacs-commit] qemacs qe.h
From: |
Charlie Gordon |
Subject: |
[Qemacs-commit] qemacs qe.h |
Date: |
Thu, 19 Dec 2013 01:00:15 +0000 |
CVSROOT: /sources/qemacs
Module name: qemacs
Changes by: Charlie Gordon <chqrlie> 13/12/19 01:00:15
Modified files:
. : qe.h
Log message:
fixed compile warnings in gcc2 (for Haiku)
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qemacs/qe.h?cvsroot=qemacs&r1=1.100&r2=1.101
Patches:
Index: qe.h
===================================================================
RCS file: /sources/qemacs/qemacs/qe.h,v
retrieving revision 1.100
retrieving revision 1.101
diff -u -b -r1.100 -r1.101
--- qe.h 17 Dec 2013 16:06:36 -0000 1.100
+++ qe.h 19 Dec 2013 01:00:14 -0000 1.101
@@ -51,13 +51,17 @@
/* make sure that the keyword is not disabled by glibc (TINYC case) */
#undef __attribute__
#define __attr_printf(a, b) __attribute__((format(printf, a, b)))
-#define __attr_nonnull(l) __attribute__((nonnull l))
-#define __unused__ __attribute__((unused))
#else
#ifndef __attribute__
#define __attribute__(l)
#endif
#define __attr_printf(a, b)
+#endif
+
+#if defined(__GNUC__) && __GNUC__ > 2
+#define __attr_nonnull(l) __attribute__((nonnull l))
+#define __unused__ __attribute__((unused))
+#else
#define __attr_nonnull(l)
#define __unused__
#endif
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemacs-commit] qemacs qe.h,
Charlie Gordon <=