Change in osmo-ttcn3-hacks[master]: StatsD_Types: Fix compiler warnings about missing record fields

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

laforge gerrit-no-reply at lists.osmocom.org
Fri Aug 21 11:15:53 UTC 2020


laforge has submitted this change. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/19752 )

Change subject: StatsD_Types: Fix compiler warnings about missing record fields
......................................................................

StatsD_Types: Fix compiler warnings about missing record fields

StatsD_Types.ttcn: In TTCN-3 module `StatsD_Types':
 StatsD_Types.ttcn:51.1-55.1: In template definition `tr_StatsDMetric':
  StatsD_Types.ttcn:51.126-55.1: warning: Field `srate' is missing from template for record type `@StatsD_Types.StatsDMetric'
 StatsD_Types.ttcn:57.1-61.1: In template definition `tr_StatsDMetricCounter':
  StatsD_Types.ttcn:57.106-61.1: warning: Field `srate' is missing from template for record type `@StatsD_Types.StatsDMetric'
 StatsD_Types.ttcn:63.1-67.1: In template definition `tr_StatsDMetricGauge':
  StatsD_Types.ttcn:63.104-67.1: warning: Field `srate' is missing from template for record type `@StatsD_Types.StatsDMetric'

Change-Id: I6d3b40dc719b42481dacb5599eb7eeb3be0426b4
---
M library/StatsD_Types.ttcn
1 file changed, 6 insertions(+), 3 deletions(-)

Approvals:
  Jenkins Builder: Verified
  pespin: Looks good to me, but someone else must approve
  laforge: Looks good to me, approved



diff --git a/library/StatsD_Types.ttcn b/library/StatsD_Types.ttcn
index 2142b8c..546e469 100644
--- a/library/StatsD_Types.ttcn
+++ b/library/StatsD_Types.ttcn
@@ -51,19 +51,22 @@
 template StatsDMetric tr_StatsDMetric(template MetricName name, template MetricValue val := ?, template MetricType mtype) := {
 	name := name,
 	val := val,
-	mtype := mtype
+	mtype := mtype,
+	srate := *
 }
 
 template StatsDMetric tr_StatsDMetricCounter(template MetricName name, template MetricValue val := ?) := {
 	name := name,
 	val := val,
-	mtype := "c"
+	mtype := "c",
+	srate := *
 }
 
 template StatsDMetric tr_StatsDMetricGauge(template MetricName name, template MetricValue val := ?) := {
 	name := name,
 	val := val,
-	mtype := "g"
+	mtype := "g",
+	srate := *
 }
 
 } with { encode "TEXT" }

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/19752
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: I6d3b40dc719b42481dacb5599eb7eeb3be0426b4
Gerrit-Change-Number: 19752
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge at osmocom.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: daniel <dwillmann at sysmocom.de>
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-Reviewer: pespin <pespin at sysmocom.de>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200821/ac3f0ee4/attachment.htm>


More information about the gerrit-log mailing list