]> git.ozlabs.org Git - ccan/blobdiff - ccan/strmap/_info
Mark unused arguments in many modules.
[ccan] / ccan / strmap / _info
index 33176b304e8522b9fb5534f773db322b904addf7..b8768698bf87a40de3a9bbc7163488206a02b281 100644 (file)
  *     license_depends_compat FAIL
  *
  * Example:
+ * #include <ccan/compiler/compiler.h>
  * #include <ccan/strmap/strmap.h>
  * #include <stdio.h>
  *
- * static bool dump(const char *member, size_t value, void *unused)
+ * static bool dump(const char *member, size_t value, void *unused UNNEEDED)
  * {
  *     printf("%s at %zu. ", member, value);
  *     // true means keep going with iteration.
@@ -29,7 +30,7 @@
  * int main(int argc, char *argv[])
  * {
  *     size_t i;
- *     struct { STRMAP_MEMBERS(size_t); } map;
+ *     STRMAP(size_t) map;
  *
  *     strmap_init(&map);
  *     for (i = 1; i < argc; i++)
@@ -40,9 +41,9 @@
  *     printf("\n");
  *     return 0;
  * }
- * // Given 'foo' outputs 'foo at 1. '
- * // Given 'foo bar' outputs 'bar at 2. foo at 1. '
- * // Given 'foo foo bar zebra' outputs 'bar at 3. foo at 1. zebra at 4. '
+ * // Given "foo" outputs "foo at 1. \n"
+ * // Given "foo bar" outputs "bar at 2. foo at 1. \n"
+ * // Given "foo foo bar zebra" outputs "bar at 3. foo at 1. zebra at 4. \n"
  */
 int main(int argc, char *argv[])
 {