aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlaf Meeuwissen <paddy-hack@member.fsf.org>2016-09-25 16:28:11 +0900
committerOlaf Meeuwissen <paddy-hack@member.fsf.org>2016-09-25 16:28:11 +0900
commit471e8ac0c1b565e5aea92f35ae173e167f3b61c7 (patch)
tree54e3276740a1b17ccbaeb1689b7b61157ff6236b
parent7d7030a40986d97d3cf7a5313bf889bce4af8131 (diff)
sanei_pp: fix [-Wcpp] compiler warning
The `#warning` directive is turned into an error by `-Werror`. The directive triggers is guaranteed to trigger with __GNUC__ when no parallel support is available. This would prevent strict CI builds. Output a message with all compilers that understand the pragma. Those that don't should ignore it, according to C99.
-rw-r--r--sanei/sanei_pp.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sanei/sanei_pp.c b/sanei/sanei_pp.c
index 6146d1e..8e68f25 100644
--- a/sanei/sanei_pp.c
+++ b/sanei/sanei_pp.c
@@ -126,9 +126,7 @@ inb( u_long port )
#elif defined(HAVE_LIBIEEE1284)
# include <ieee1284.h>
#else
-# if defined(__GNUC__)
-# warning "No I/O support for this architecture!"
-# endif
+# pragma message "No I/O support for this architecture!"
# define IO_SUPPORT_MISSING
#endif