diff options
Diffstat (limited to 'lib9p/map.h')
-rw-r--r-- | lib9p/map.h | 5 |
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 |