[gjs: 2/3] arg-cache: Fail in case we try to set an unsupported array length type




commit 2c4eff87274d5a460b354131a5b8fa3ef53db772
Author: Marco Trevisan (TreviƱo) <mail 3v1n0 net>
Date:   Fri Aug 21 14:39:21 2020 +0200

    arg-cache: Fail in case we try to set an unsupported array length type

 gi/arg-cache.cpp | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/gi/arg-cache.cpp b/gi/arg-cache.cpp
index a0451d24..4d37138f 100644
--- a/gi/arg-cache.cpp
+++ b/gi/arg-cache.cpp
@@ -126,6 +126,8 @@ static void gjs_g_argument_set_array_length(GITypeTag tag, GIArgument* arg,
         case GI_TYPE_TAG_UINT64:
             gjs_arg_set<uint64_t>(arg, value);
             break;
+        default:
+            g_assert_not_reached();
     }
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]