From e1b824b871b40d7f033ebd2fcbe80331b0b14e4c Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Mon, 27 May 2019 13:26:21 +0200 Subject: [PATCH] shared: fix return in nm_value_type_to_variant()/nm_value_type_get_variant_type() Fixes: 75703a242563 ('shared: add accessor functions for NMValueType') --- shared/nm-glib-aux/nm-value-type.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/shared/nm-glib-aux/nm-value-type.h b/shared/nm-glib-aux/nm-value-type.h index a25d7a563..b4d6898f7 100644 --- a/shared/nm-glib-aux/nm-value-type.h +++ b/shared/nm-glib-aux/nm-value-type.h @@ -178,6 +178,7 @@ nm_value_type_to_variant (NMValueType value_type, break; } nm_assert_not_reached (); + return NULL; } static inline const GVariantType * @@ -197,6 +198,7 @@ nm_value_type_get_variant_type (NMValueType value_type) break; } nm_assert_not_reached (); + return NULL; } /*****************************************************************************/