Warning as error in asan build in test_nmt_cornercases.cpp on Linux

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 27
    • Affects Version/s: 27
    • Component/s: hotspot
    • master
    • x86_64
    • linux

      We see now in our asan build (linux x86_64 product) this build error, are you aware of this ?
      /priv/jenkins/ci1/client-home/workspace/openjdk-jdk-weekly-linux_x86_64-opt/jdk/test/hotspot/gtest/nmt/test_nmt_cornercases.cpp:35:13: error: 'void check_expected_malloc_header(const void*, MemTag, size_t)' defined but not used [-Werror=unused-function]
         35 | static void check_expected_malloc_header(const void* payload, MemTag mem_tag, size_t size) {
            | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
      cc1plus: all warnings being treated as errors

      If the function void check_expected_malloc_header is unused now we should probably move it into the
      #if !INCLUDE_ASAN
      block ?

            Assignee:
            Afshin Zafari
            Reporter:
            Matthias Baesken
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: