summaryrefslogtreecommitdiff
path: root/config.h.in
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2013-06-22 14:06:33 -0700
committerGuy Harris <guy@alum.mit.edu>2013-06-22 14:06:33 -0700
commit94bf5a24bf7c9c959ad90821655d2b68c92ef32f (patch)
treee5498e4298be3fe2083d3577b3baedee025a7d50 /config.h.in
parent85f8a9984983e54503c408166c78d256690dcd29 (diff)
downloadtcpdump-94bf5a24bf7c9c959ad90821655d2b68c92ef32f.tar.gz
Avoid some warnings from Sun C.
Some versions of Sun C support __attribute__ but don't support the "unused" or "format" attributes - they don't fail, but they whine a lot. They also support the "noreturn" attribute, but don't allow it to be applied to function pointers, only to functions. Check whether they can be used without warnings, and use them only if they can.
Diffstat (limited to 'config.h.in')
-rw-r--r--config.h.in7
1 files changed, 7 insertions, 0 deletions
diff --git a/config.h.in b/config.h.in
index 4c48e6fb..3a2da984 100644
--- a/config.h.in
+++ b/config.h.in
@@ -283,10 +283,17 @@
/* define on AIX to get certain functions */
#undef _SUN
+/* define if your compiler allows __attribute__((format)) without a warning */
+#undef __ATTRIBUTE___FORMAT_OK
+
/* define if your compiler allows __attribute__((format)) to be applied to
function pointers */
#undef __ATTRIBUTE___FORMAT_OK_FOR_FUNCTION_POINTERS
+/* define if your compiler allows __attribute__((noreturn)) to be applied to
+ function pointers */
+#undef __ATTRIBUTE___NORETURN_OK_FOR_FUNCTION_POINTERS
+
/* to handle Ultrix compilers that don't support const in prototypes */
#undef const