]> git.ipfire.org Git - thirdparty/rsync.git/commitdiff
Let's just remove all the UNUSED() macros for now.
authorWayne Davison <wayned@samba.org>
Sat, 8 May 2004 22:49:58 +0000 (22:49 +0000)
committerWayne Davison <wayned@samba.org>
Sat, 8 May 2004 22:49:58 +0000 (22:49 +0000)
popt/popt.c
popt/poptconfig.c
popt/popthelp.c
popt/system.h

index a629bee638eb36efbc1c01cb98fa1345e116ce06..a75086d1ae2daaaf8dd4727089c8ab68c3a3138b 100644 (file)
@@ -1055,7 +1055,7 @@ poptContext poptFreeContext(poptContext con)
 }
 
 int poptAddAlias(poptContext con, struct poptAlias alias,
-               UNUSED(int flags))
+               /*@unused@*/ int flags)
 {
     poptItem item = (poptItem) alloca(sizeof(*item));
     memset(item, 0, sizeof(*item));
index 50235661216bf25f39309ccb647cdee07a75e1fd..177e972496e7092691fc3b14d188ccd511e7d178 100644 (file)
@@ -159,7 +159,7 @@ int poptReadConfigFile(poptContext con, const char * fn)
     return 0;
 }
 
-int poptReadDefaultConfig(poptContext con, /*@unused@*/ UNUSED(int useEnv))
+int poptReadDefaultConfig(poptContext con, /*@unused@*/ int useEnv)
 {
     char * fn, * home;
     int rc;
index 9b0920537b60eff0923f41315953ef467ba7a8de..1ddb895c74b830497436f60ac605695f1239b763 100644 (file)
@@ -17,9 +17,9 @@
  * @param key          option(s)
  */
 static void displayArgs(poptContext con,
-               /*@unused@*/ UNUSED(enum poptCallbackReason foo),
+               /*@unused@*/ enum poptCallbackReason foo,
                struct poptOption * key, 
-               /*@unused@*/ UNUSED(const char * arg), /*@unused@*/ UNUSED(void * data))
+               /*@unused@*/ const char * arg, /*@unused@*/ void * data)
        /*@globals fileSystem@*/
        /*@modifies fileSystem@*/
 {
@@ -84,7 +84,7 @@ getTableTranslationDomain(/*@null@*/ const struct poptOption *table)
 /*@observer@*/ /*@null@*/ static const char *const
 getArgDescrip(const struct poptOption * opt,
                /*@-paramuse@*/         /* FIX: wazzup? */
-               /*@null@*/ UNUSED(const char * translation_domain))
+               /*@null@*/ const char * translation_domain)
                /*@=paramuse@*/
        /*@*/
 {
@@ -115,7 +115,7 @@ static /*@only@*/ /*@null@*/ char *
 singleOptionDefaultValue(int lineLength,
                const struct poptOption * opt,
                /*@-paramuse@*/ /* FIX: i18n macros disable with lclint */
-               /*@null@*/ UNUSED(const char * translation_domain))
+               /*@null@*/ const char * translation_domain)
                /*@=paramuse@*/
        /*@*/
 {
@@ -475,7 +475,7 @@ static int showHelpIntro(poptContext con, FILE * fp)
     return len;
 }
 
-void poptPrintHelp(poptContext con, FILE * fp, /*@unused@*/ UNUSED(int flags))
+void poptPrintHelp(poptContext con, FILE * fp, /*@unused@*/ int flags)
 {
     int leftColWidth;
 
@@ -634,7 +634,7 @@ static int showShortOptions(const struct poptOption * opt, FILE * fp,
     return strlen(s) + 4;
 }
 
-void poptPrintUsage(poptContext con, FILE * fp, /*@unused@*/ UNUSED(int flags))
+void poptPrintUsage(poptContext con, FILE * fp, /*@unused@*/ int flags)
 {
     int cursor;
 
index 02f05c188ee718e479047f53724aa5fa6d014145..fc2f0d4c4d1d07063105cd75d41a05de83d1f068 100644 (file)
 #include <unistd.h>
 #endif
 
-#if !defined(__GNUC__) || defined(APPLE)
-/* Apparently the OS X port of gcc gags on __attribute__.
- *
- * <http://www.opensource.apple.com/bugs/X/gcc/2512150.html> */
-#define __attribute__(x) 
-
-#endif
-
 #ifdef __NeXT
 /* access macros are not declared in non posix mode in unistd.h -
  don't try to use posix on NeXTstep 3.3 ! */
@@ -77,6 +69,4 @@ char *alloca ();
 #define        xstrdup(_str)   strdup(_str)
 #endif  /* HAVE_MCHECK_H && defined(__GNUC__) */
 
-#define UNUSED(x) x __attribute__((__unused__))
-
 #include "popt.h"