summaryrefslogtreecommitdiff
path: root/lib9p/map.h
diff options
context:
space:
mode:
authorLuke T. Shumaker <lukeshu@lukeshu.com>2024-10-04 17:28:54 -0600
committerLuke T. Shumaker <lukeshu@lukeshu.com>2024-10-04 17:28:54 -0600
commit2fe787ba4db420f5b08573d77e35cfaa0d7a0793 (patch)
treeb9c1264b56d713a6df9b029606f87d824f3a3d20 /lib9p/map.h
parentb683e779ef83b88f6ffc503a1d1a4f3ec25a5cfa (diff)
wip srv
Diffstat (limited to 'lib9p/map.h')
-rw-r--r--lib9p/map.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib9p/map.h b/lib9p/map.h
index a8d26b5..9df9be7 100644
--- a/lib9p/map.h
+++ b/lib9p/map.h
@@ -45,6 +45,9 @@ struct NAME {
struct MAP_KV(NAME) items[CAP];
};
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wunused-function"
+
/**
* Load an item from the map; return a pointer to the in-map value, or
* NULL if the item is not in the map.
@@ -96,6 +99,8 @@ static bool MAP_METHOD(NAME,del)(struct NAME *m, KEY_T k) {
return false;
}
+#pragma GCC diagnostic pop
+
#undef NAME
#undef KEY_T
#undef VAL_T