]> granicus.if.org Git - graphviz/commit
gvpack: cast string literal when calling 'agnodeattr'
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Thu, 14 Apr 2022 14:52:47 +0000 (07:52 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Mon, 25 Apr 2022 02:12:48 +0000 (19:12 -0700)
commitc9e5d7cd7ed01c05b4c1925761ee58c395b7d773
tree4f788e9b86a05d7faeed36f0c1653d0cd04f9602
parent17ce8286c6199146b7884bd266556b05bf4c07ed
gvpack: cast string literal when calling 'agnodeattr'

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

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

Gitlab: #2154
cmd/tools/gvpack.c