]> granicus.if.org Git - graphviz/commit
gvpack: use a const char array instead of mutable variable for usage string
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Thu, 14 Apr 2022 00:15:20 +0000 (17:15 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Mon, 25 Apr 2022 02:12:48 +0000 (19:12 -0700)
commitc20069dfa6fc3824fb49c3d05d02f5e32a9f63d9
tree0e3018eb456c8c00455f852202f900e5bbfd1288
parent4e13dd92c869a8107cb4f274502809e2252af8fa
gvpack: use a const char array instead of mutable variable for usage string

This pre-emptively squashes an upcoming warning when converting this file to C++
which otherwise fails the CMake build:

  cmd/tools/gvpack.cpp:82:5: error: ISO C++11 does not allow conversion from
    string literal to 'char *' [-Werror,-Wwritable-strings]

Gitlab: #2154
cmd/tools/gvpack.c