From e558411798b45abeddd686bfc4c122ab6132f58e Mon Sep 17 00:00:00 2001 From: jbj Date: Sat, 8 Mar 2008 17:26:30 +0000 Subject: - jbj: test for , disable reading directory poptrc files if not. - jbj: add __attribute__(__unused__) (Wayne Davidson). - jbj: permit equal after short option (Wayne Davidson). --- popthelp.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'popthelp.c') diff --git a/popthelp.c b/popthelp.c index 0de5e6a..bd64d2c 100644 --- a/popthelp.c +++ b/popthelp.c @@ -34,9 +34,10 @@ */ /*@exits@*/ static void displayArgs(poptContext con, - /*@unused@*/ enum poptCallbackReason foo, + /*@unused@*/ UNUSED(enum poptCallbackReason foo), struct poptOption * key, - /*@unused@*/ const char * arg, /*@unused@*/ void * data) + /*@unused@*/ UNUSED(const char * arg), + /*@unused@*/ UNUSED(void * data)) /*@globals fileSystem@*/ /*@modifies fileSystem@*/ { @@ -645,7 +646,7 @@ static size_t showHelpIntro(poptContext con, FILE * fp) return len; } -void poptPrintHelp(poptContext con, FILE * fp, /*@unused@*/ int flags) +void poptPrintHelp(poptContext con, FILE * fp, /*@unused@*/ UNUSED(int flags)) { columns_t columns = calloc((size_t)1, sizeof(*columns)); int xx; @@ -866,7 +867,7 @@ static size_t showShortOptions(const struct poptOption * opt, FILE * fp, return len; } -void poptPrintUsage(poptContext con, FILE * fp, /*@unused@*/ int flags) +void poptPrintUsage(poptContext con, FILE * fp, /*@unused@*/ UNUSED(int flags)) { columns_t columns = calloc((size_t)1, sizeof(*columns)); struct poptDone_s done_buf; -- cgit v1.2.1