summaryrefslogtreecommitdiffstats
path: root/avahi-common
diff options
context:
space:
mode:
Diffstat (limited to 'avahi-common')
-rw-r--r--avahi-common/alternative-test.c1
-rw-r--r--avahi-common/gccmacro.h6
2 files changed, 6 insertions, 1 deletions
diff --git a/avahi-common/alternative-test.c b/avahi-common/alternative-test.c
index 7f0223a..7ec0f33 100644
--- a/avahi-common/alternative-test.c
+++ b/avahi-common/alternative-test.c
@@ -46,4 +46,5 @@ int main(int argc, char *argv[]) {
}
avahi_free(r);
+ return 0;
}
diff --git a/avahi-common/gccmacro.h b/avahi-common/gccmacro.h
index 2ac6c1d..24f206f 100644
--- a/avahi-common/gccmacro.h
+++ b/avahi-common/gccmacro.h
@@ -25,8 +25,12 @@
/** \file gccmacro.h Defines some macros for GCC extensions */
#ifdef __GNUC__
+#if __GNUC__ >= 4
#define AVAHI_GCC_SENTINEL __attribute__ ((sentinel))
-#else
+#endif
+#endif
+
+#ifndef AVAHI_GCC_SENTINEL
/** Macro for usage of GCC's sentinel compilation warnings */
#define AVAHI_GCC_SENTINEL
#endif