From: Matthew Fernandez Date: Sat, 25 Dec 2021 19:26:32 +0000 (-0800) Subject: mingle: convert usage text to a const char array X-Git-Tag: 3.0.0~95^2~12 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d3b9b22139e4751e9210101e87737a8d8f469cfd;p=graphviz mingle: convert usage text to a const char array This makes the intent of the code slightly clearer, but also pre-emptively avoids an upcoming -Wwrite-strings warning when converting this code to C++. Related to #2154. --- diff --git a/cmd/mingle/minglemain.c b/cmd/mingle/minglemain.c index 75ce86005..4208425ce 100644 --- a/cmd/mingle/minglemain.c +++ b/cmd/mingle/minglemain.c @@ -60,7 +60,7 @@ static FILE *openFile(const char *name, const char* cmd) return (fp); } -static char* use_msg = +static const char use_msg[] = "Usage: mingle \n\ -a t - max. turning angle [0-180] (40)\n\ -c i - compatability measure; 0 : distance, 1: full (default)\n\