summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--glnx-macros.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/glnx-macros.h b/glnx-macros.h
index 24705af..1d4e175 100644
--- a/glnx-macros.h
+++ b/glnx-macros.h
@@ -120,6 +120,8 @@ G_BEGIN_DECLS
#define _GLNX_HASH_TABLE_FOREACH_IMPL_KV(guard, ht, it, kt, k, vt, v) \
gboolean guard = TRUE; \
+ G_STATIC_ASSERT (sizeof (kt) == sizeof (void*)); \
+ G_STATIC_ASSERT (sizeof (vt) == sizeof (void*)); \
for (GHashTableIter it; \
guard && ({ g_hash_table_iter_init (&it, ht), TRUE; }); \
guard = FALSE) \