]> git.ozlabs.org Git - ccan/blobdiff - ccan/opt/opt.h
ccanlint: recognise new BSD 3-clause license.
[ccan] / ccan / opt / opt.h
index 8796752a133f9f8d70854af0d99ba52af4d8b51c..0748fe6a7f0694f831ea94c85439d1a0ba65cc76 100644 (file)
@@ -1,5 +1,6 @@
 #ifndef CCAN_OPT_H
 #define CCAN_OPT_H
+#include <ccan/compiler/compiler.h>
 #include <ccan/typesafe_cb/typesafe_cb.h>
 #include <stdbool.h>
 
@@ -79,7 +80,7 @@ struct opt_table;
  *
  * This must be the final element in the opt_table array.
  */
-#define OPT_ENDTABLE { NULL, OPT_END }
+#define OPT_ENDTABLE { NULL, OPT_END, NULL, NULL, NULL, NULL, NULL }
 
 /**
  * opt_register_table - register a table of options
@@ -325,6 +326,6 @@ void _opt_register(const char *names, enum opt_type type,
                   void *arg, const char *desc);
 
 /* We use this to get typechecking for OPT_SUBTABLE */
-static inline int _check_is_entry(struct opt_table *e) { return 0; }
+static inline int _check_is_entry(struct opt_table *e UNUSED) { return 0; }
 
 #endif /* CCAN_OPT_H */