diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2013-08-20 06:02:29 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2013-08-20 06:08:07 +0200 |
commit | d9dc87d8409ddf8361b7fcb311ae97088ed1d984 (patch) | |
tree | c63be2cf2a7d978dd5b30b3a404d9442acefdff7 /src/types.h | |
parent | 3fd947a2d13a3f110f7c558b1d294dddfd2d25e0 (diff) | |
download | fastd-d9dc87d8409ddf8361b7fcb311ae97088ed1d984.tar fastd-d9dc87d8409ddf8361b7fcb311ae97088ed1d984.zip |
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.
Diffstat (limited to 'src/types.h')
-rw-r--r-- | src/types.h | 3 |
1 files changed, 3 insertions, 0 deletions
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 <stdbool.h> +#define UNUSED __attribute__((unused)) + + typedef struct fastd_tristate { bool set : 1; bool state : 1; |