]> git.lyx.org Git - lyx.git/commit
Fix compiler warning -Wstring-plus-int
authorScott Kostyshak <skostysh@lyx.org>
Thu, 29 Dec 2022 02:56:18 +0000 (21:56 -0500)
committerScott Kostyshak <skostysh@lyx.org>
Thu, 29 Dec 2022 02:58:30 +0000 (21:58 -0500)
commitd44eaa9713d305fc9ac02fd521d0ac4cdfac7900
tree5ca3d5dc467aa7c70d3d9900b0b20daa7b269932
parent0faead1719ad0647b4543f77b8bee5105c96ef93
Fix compiler warning -Wstring-plus-int

Warning was as follows:

  src/tex2lyx/Parser.cpp:898:39: error: adding 'uint32_t' (aka 'unsigned int') to a string does not append to the string [-Werror,-Wstring-plus-int]
                  warning_message("ignoring a char: " + static_cast<uint32_t>(c));
                                  ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
  src/tex2lyx/Parser.cpp:898:39: note: use array indexing to silence this warning
                  warning_message("ignoring a char: " + static_cast<uint32_t>(c));
                                                      ^
                                  &                   [                         ]
  1 error generated.
src/tex2lyx/Parser.cpp