]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
PCC compiler fixes.
authorRoy Marples <roy@marples.name>
Fri, 22 Feb 2008 11:45:18 +0000 (11:45 +0000)
committerRoy Marples <roy@marples.name>
Fri, 22 Feb 2008 11:45:18 +0000 (11:45 +0000)
common.h
logger.h

index c9f8180b928f7c639d74597c6850fb28e504156f..fa8f9281191080b0c85de472bdf418cb1232fec3 100644 (file)
--- a/common.h
+++ b/common.h
 #include <stdio.h>
 #include <string.h>
 
-#if __GNUC__ > 2 || defined(__INTEL_COMPILER) || defined(__PCC__)
+#if __GNUC__ > 2 || defined(__INTEL_COMPILER)
 # define _unused __attribute__((__unused__))
+#else
+# define _unused
 #endif
 
 #define HAVE_STRLCPY
index f1801bf8e6d9a8955fc2e577cfd9209e61840a97..989f68d477d7f0a94dc7eb3287422b68a0bc24da 100644 (file)
--- a/logger.h
+++ b/logger.h
@@ -28,7 +28,7 @@
 #ifndef LOGGER_H
 #define LOGGER_H
 
-#if defined(__GNUC__) || defined(__PCC__)
+#if defined(__GNUC__)
 #  define _PRINTF_LIKE(_one, _two)  __attribute__ ((__format__ (__printf__, _one, _two)))
 #else
 #  define _PRINTF_LIKE(_one, _two)