]> granicus.if.org Git - graphviz/commit
gvpack: cast string literals when calling 'agfindnodeattr'
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Thu, 14 Apr 2022 00:23:47 +0000 (17:23 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Mon, 25 Apr 2022 02:12:48 +0000 (19:12 -0700)
commit79f913e57dc714e447bf52bbbeed94aec68973e7
tree2509004c61e316a91a1dfeb9c0c8cbc9c3d4c09e
parentd947ff2d2b2b057993f1611075c218fbbb1e11bc
gvpack: cast string literals when calling 'agfindnodeattr'

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

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

Gitlab: #2154
cmd/tools/gvpack.c