summaryrefslogtreecommitdiff
path: root/popthelp.c
diff options
context:
space:
mode:
authorjbj <jbj>2008-03-08 17:26:30 +0000
committerjbj <jbj>2008-03-08 17:26:30 +0000
commite558411798b45abeddd686bfc4c122ab6132f58e (patch)
tree32d22a80115877744eb5434942a72c5924c61657 /popthelp.c
parent04f0481b2d1156e28fff2a8039dac6befa6dacb5 (diff)
downloadlibpopt-e558411798b45abeddd686bfc4c122ab6132f58e.tar.gz
- jbj: test for <glob.h>, disable reading directory poptrc files if not.
- jbj: add __attribute__(__unused__) (Wayne Davidson<wayned@samba.org>). - jbj: permit equal after short option (Wayne Davidson<wayned@samba.org>).
Diffstat (limited to 'popthelp.c')
-rw-r--r--popthelp.c9
1 files changed, 5 insertions, 4 deletions
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;