]> granicus.if.org Git - graphviz/commit
gvpack: cast string literals when calling 'agfindgraphattr'
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Thu, 14 Apr 2022 00:27:53 +0000 (17:27 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Mon, 25 Apr 2022 02:12:48 +0000 (19:12 -0700)
commitd1c74d68aa8f5cd138a9efdba5cafb4975a919ed
treef1e4407cdd210b758b70f7f2b63509eb3da3fe48
parent79f913e57dc714e447bf52bbbeed94aec68973e7
gvpack: cast string literals when calling 'agfindgraphattr'

This pre-emptively squashes several upcoming warnings when converting this file
to C++ which otherwise fail the CMake build:

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

Gitlab: #2154
cmd/tools/gvpack.c