Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8274265

Suspicious string concatenation in logTestUtils.inline.hpp

XMLWordPrintable

    • b17
    • x86_64
    • os_x

        When compiling with newest XCode / LLVM 13.0

        In file included from <...>/test/hotspot/gtest/logging/test_logConfiguration.cpp:28:
        <...>/test/hotspot/gtest/logging/logTestUtils.inline.hpp:35:70: error: suspicious concatenation of string literals in an array initialization; did you mean to separate the elements with a comma? [-Werror,-Wstring-concatenation]
          "=", "+", " ", "+=", "+=*", "*+", " +", "**", "++", ".", ",", ",," ",+",

        This looks like a simple oversight. Adding the missing commas doesn't change any test results, apparently.

              jespersm Jesper Møller
              jespersm Jesper Møller
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: