mirror of
https://github.com/troglobit/libuev.git
synced 2026-10-20 10:59:31 +00:00
Remove __attribute__ ((unused)), use -Wno-unused-parameter instead
The __attribute__ ((unused)) is useful sometimes to declare variables as intended to be unused, e.g. in callback functions. However, they tend to clutter up the code making hard to read. We therefore remove all uses of it and instead set -Wno-unused-parameter. Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
de89b6647d
commit
99ef6eb884
10 files changed
+15
-22
No files matched your search
+1
-1
@@ -7,7 +7,7 @@
|
||||
int result = -1;
|
||||
struct timeval start;
|
||||
|
||||
static void cb(uev_t *w, void *UNUSED(arg), int events)
|
||||
static void cb(uev_t *w, void *arg, int events)
|
||||
{
|
||||
struct timeval now;
|
||||
|
||||
|
||||
Reference in new issue
Block a user