mirror of
https://github.com/troglobit/finit.git
synced 2026-10-21 11:29:42 +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
@@ -293,6 +293,8 @@ static size_t print_timestamp(char *buf, size_t len)
|
||||
sscanf(buf, "%f %f", &stamp, &dummy);
|
||||
return snprintf(buf, len, "[ %.6f ]", stamp);
|
||||
#else
|
||||
(void)buf;
|
||||
(void)len;
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user