From: Matthew Fernandez Date: Thu, 20 May 2021 00:35:25 +0000 (-0700) Subject: make gvmap usage a const char array X-Git-Tag: 2.47.3~26^2~5 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c65742c4a83b3054422d3e01afde60dc44c6a5b1;p=graphviz make gvmap usage a const char array This makes it more obvious to the compiler that it can inline or otherwise optimize usage of this string. --- diff --git a/cmd/gvmap/gvmap.c b/cmd/gvmap/gvmap.c index 312580d17..6475fc446 100644 --- a/cmd/gvmap/gvmap.c +++ b/cmd/gvmap/gvmap.c @@ -59,7 +59,7 @@ typedef struct { int seed; /* seed used to calculate Fiedler vector */ } params_t; -static char* usestr = +static const char usestr[] = " where graphfile must contain node positions, and widths and heights for each node. No overlap between nodes should be present. Acceptable options are: \n\ -a k - average number of artificial points added along the bounding box of the labels. If < 0, a suitable value is selected automatically. (-1)\n\ -b v - polygon line width, with v < 0 for no line. (0)\n\