diff options
Diffstat (limited to 'guts')
-rw-r--r-- | guts/__xmknodat.c | 3 | ||||
-rw-r--r-- | guts/setgroups.c | 3 | ||||
-rw-r--r-- | guts/tempnam.c | 3 | ||||
-rw-r--r-- | guts/tmpnam.c | 2 |
4 files changed, 11 insertions, 0 deletions
diff --git a/guts/__xmknodat.c b/guts/__xmknodat.c index 7281d33..7b4fc4b 100644 --- a/guts/__xmknodat.c +++ b/guts/__xmknodat.c @@ -9,6 +9,9 @@ pseudo_msg_t *msg; struct stat64 buf; + /* we don't use underlying call, so _ver is irrelevant to us */ + (void) ver; + #ifdef PSEUDO_NO_REAL_AT_FUNCTIONS if (dirfd != AT_FDCWD) { errno = ENOSYS; diff --git a/guts/setgroups.c b/guts/setgroups.c index 51058c0..31b2b57 100644 --- a/guts/setgroups.c +++ b/guts/setgroups.c @@ -7,6 +7,9 @@ * int rc = -1; */ + /* let gcc know we're ignoring these */ + (void) size; + (void) list; /* you always have all group privileges. we're like magic! */ rc = 0; diff --git a/guts/tempnam.c b/guts/tempnam.c index b2c1990..9b0257f 100644 --- a/guts/tempnam.c +++ b/guts/tempnam.c @@ -6,6 +6,9 @@ * wrap_tempnam(const char *template, const char *pfx) { * char * rc = NULL; */ + /* let gcc know we ignored these on purpose */ + (void) template; + (void) pfx; pseudo_diag("tempnam() is so ludicrously insecure as to defy implementation."); errno = ENOMEM; rc = NULL; diff --git a/guts/tmpnam.c b/guts/tmpnam.c index 0df04b0..3fece57 100644 --- a/guts/tmpnam.c +++ b/guts/tmpnam.c @@ -7,6 +7,8 @@ * char * rc = NULL; */ + /* let gcc know we're ignoring this */ + (void) s; pseudo_diag("tmpnam() is so ludicrously insecure as to defy implementation."); errno = ENOMEM; rc = NULL; |