From: Michael Jeanson Date: Fri, 26 Mar 2021 19:34:21 +0000 (-0400) Subject: fix: string constants (-Wwrite-strings) X-Git-Tag: v2.13.0-rc1~160 X-Git-Url: http://git.lttng.org./?a=commitdiff_plain;h=74c3f8e27f5b750b71136ce1737972c28f288540;hp=74c3f8e27f5b750b71136ce1737972c28f288540;p=lttng-ust.git fix: string constants (-Wwrite-strings) Do not use an anonymous string literal with a non-const char pointer as this will discard the implicit const, use static non-const string instead when appropriate. Otherwise, we could end up trying to write to a string constant. Change-Id: Ie2bb0e5ab7978930f9edcdb379bd181caaacc15c Signed-off-by: Michael Jeanson Signed-off-by: Mathieu Desnoyers ---