]> git.ipfire.org Git - thirdparty/collectd.git/commitdiff
format_open_telemetry: Add `return` statement to that the block is not empty.
authorFlorian Forster <octo@collectd.org>
Wed, 3 Jan 2024 16:01:34 +0000 (17:01 +0100)
committerFlorian Forster <octo@collectd.org>
Wed, 3 Jan 2024 16:16:28 +0000 (17:16 +0100)
src/utils/format_open_telemetry/format_open_telemetry.cc

index e28e1a3b430d1c6804d87a9034f6841abf7dd35b..6ae823ee2970fe510910973c5291193df184515e 100644 (file)
@@ -132,6 +132,7 @@ static void add_metric(ScopeMetrics *sm, metric_family_t const *fam) {
     return;
   case METRIC_TYPE_UNTYPED:
     // never reached, only here to make the compiler happy
+    return;
   }
 }