From 39823be84f1ff23f4efb97b7ef99dd92889d0559 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Wed, 26 Jan 2022 13:53:14 +0000 Subject: [PATCH] run: Avoid cast warning when built with -Wwrite-strings We're not going to call XauDisposeAuth on local_xa, so it's OK to put a "borrowed" constant string here. Signed-off-by: Simon McVittie --- common/flatpak-run.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/flatpak-run.c b/common/flatpak-run.c index 42445131..252f9d7d 100644 --- a/common/flatpak-run.c +++ b/common/flatpak-run.c @@ -177,7 +177,7 @@ write_xauth (char *number, FILE *output) local_xa = *xa; if (local_xa.number) { - local_xa.number = "99"; + local_xa.number = (char *) "99"; local_xa.number_length = 2; }