mirror of
https://github.com/troglobit/finit.git
synced 2026-10-20 11:19:35 +00:00
Declare unused parameters
When building with global CFLAGS=-Wunused-parameter the output from the build looks terrible. This commit explicitly declares unused variables to prevent triggering -Wunused-parameter Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
10 files changed
+55
No files matched your search
@@ -202,6 +202,9 @@ static int do_delete(const char *fpath, const struct stat *sb, int tflag, struct
|
||||
{
|
||||
const char *cond, *ptr;
|
||||
|
||||
(void)sb;
|
||||
(void)tflag;
|
||||
|
||||
if (ftw->level == 0)
|
||||
return 1;
|
||||
|
||||
@@ -390,6 +393,8 @@ static int do_assert(const char *fpath, const struct stat *sb, int tflg, struct
|
||||
{
|
||||
char *nm;
|
||||
|
||||
(void)sb;
|
||||
|
||||
if (ftw->level == 0)
|
||||
return 1;
|
||||
|
||||
|
||||
Reference in new issue
Block a user