summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2019-05-27 13:26:21 +0200
committerThomas Haller <thaller@redhat.com>2019-05-27 13:27:13 +0200
commite1b824b871b40d7f033ebd2fcbe80331b0b14e4c (patch)
tree531b066a78ad84113c8aa8ebdb5d24df8108087a
parent51793569e18e7b7b71cdff92d8fe513f973f6e78 (diff)
downloadNetworkManager-e1b824b871b40d7f033ebd2fcbe80331b0b14e4c.tar.gz
shared: fix return in nm_value_type_to_variant()/nm_value_type_get_variant_type()
Fixes: 75703a242563 ('shared: add accessor functions for NMValueType')
-rw-r--r--shared/nm-glib-aux/nm-value-type.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/shared/nm-glib-aux/nm-value-type.h b/shared/nm-glib-aux/nm-value-type.h
index a25d7a5635..b4d6898f76 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;
}
/*****************************************************************************/