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

Suspicious string concatenation in logTestUtils.inline.hpp

    XMLWordPrintable

Details

    • b17
    • x86_64
    • os_x

    Backports

      Description

        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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                  Created:
                  Updated:
                  Resolved: