From d9dc87d8409ddf8361b7fcb311ae97088ed1d984 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Tue, 20 Aug 2013 06:02:29 +0200 Subject: Fix lots of -Wextra warnings Everything clang and GCC warn about, except GCC's missing-field-initializers which are just stupid as they don't allow {} syntax to zero a field. --- src/types.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/types.h') diff --git a/src/types.h b/src/types.h index 8eaa55d..bb7663e 100644 --- a/src/types.h +++ b/src/types.h @@ -39,6 +39,9 @@ #include +#define UNUSED __attribute__((unused)) + + typedef struct fastd_tristate { bool set : 1; bool state : 1; -- cgit v1.2.3