From e38fe28185db08c919340702f0770976511ef0ba Mon Sep 17 00:00:00 2001
From: Simon McVittie <smcv@collabora.com>
Date: Wed, 15 Apr 2020 13:59:15 +0100
Subject: [PATCH] runtime: Statically assert that libquals and multiarch_tuples
 match

Signed-off-by: Simon McVittie <smcv@collabora.com>
---
 src/runtime.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/runtime.c b/src/runtime.c
index 5ede05612..ce2ad0559 100644
--- a/src/runtime.c
+++ b/src/runtime.c
@@ -105,6 +105,8 @@ static const char * const libquals[] =
   "lib64",
   "lib32"
 };
+G_STATIC_ASSERT (G_N_ELEMENTS (libquals)
+                 == G_N_ELEMENTS (multiarch_tuples) - 1);
 
 static gboolean pv_runtime_use_host_graphics_stack (PvRuntime *self,
                                                     FlatpakBwrap *bwrap,
-- 
GitLab