[clang] [llvm] Add macro to suppress -Wunnecessary-virtual-specifier (PR #139614)
LLVM Continuous Integration via cfe-commits
cfe-commits at lists.llvm.org
Wed May 21 11:48:50 PDT 2025
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `publish-sphinx-docs` running on `as-worker-4` while building `clang,llvm` at step 5 "build-docs-llvm-html-docs-clang-html-docs-clang...".
Full details are available at: https://lab.llvm.org/buildbot/#/builders/45/builds/12459
<details>
<summary>Here is the relevant piece of the build log for the reference</summary>
```
Step 5 (build-docs-llvm-html-docs-clang-html-docs-clang...) failure: build (failure)
0.027 [5347/24/1] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/ABIBreak.cpp.o
0.057 [5346/24/2] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/AutoConvert.cpp.o
0.479 [5345/24/3] Building CXX object lib/Demangle/CMakeFiles/LLVMDemangle.dir/Demangle.cpp.o
0.982 [5344/24/4] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/AArch64BuildAttributes.cpp.o
FAILED: lib/Support/CMakeFiles/LLVMSupport.dir/AArch64BuildAttributes.cpp.o
/usr/bin/c++ -DGTEST_HAS_RTTI=0 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/buildbot/as-worker-4/publish-sphinx-docs/build/lib/Support -I/home/buildbot/as-worker-4/publish-sphinx-docs/llvm-project/llvm/lib/Support -I/home/buildbot/as-worker-4/publish-sphinx-docs/build/include -I/home/buildbot/as-worker-4/publish-sphinx-docs/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=c++17 -fno-exceptions -funwind-tables -fno-rtti -MD -MT lib/Support/CMakeFiles/LLVMSupport.dir/AArch64BuildAttributes.cpp.o -MF lib/Support/CMakeFiles/LLVMSupport.dir/AArch64BuildAttributes.cpp.o.d -o lib/Support/CMakeFiles/LLVMSupport.dir/AArch64BuildAttributes.cpp.o -c /home/buildbot/as-worker-4/publish-sphinx-docs/llvm-project/llvm/lib/Support/AArch64BuildAttributes.cpp
In file included from /home/buildbot/as-worker-4/publish-sphinx-docs/llvm-project/llvm/include/llvm/ADT/STLFunctionalExtras.h:19,
from /home/buildbot/as-worker-4/publish-sphinx-docs/llvm-project/llvm/include/llvm/ADT/StringRef.h:13,
from /home/buildbot/as-worker-4/publish-sphinx-docs/llvm-project/llvm/include/llvm/Support/AArch64BuildAttributes.h:21,
from /home/buildbot/as-worker-4/publish-sphinx-docs/llvm-project/llvm/lib/Support/AArch64BuildAttributes.cpp:9:
/home/buildbot/as-worker-4/publish-sphinx-docs/llvm-project/llvm/include/llvm/Support/Compiler.h:719:40: error: missing binary operator before token "("
719 | #if defined(__clang__) && __has_warning("-Wunnecessary-virtual-specifier")
| ^
1.001 [5344/23/5] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/BuryPointer.cpp.o
FAILED: lib/Support/CMakeFiles/LLVMSupport.dir/BuryPointer.cpp.o
/usr/bin/c++ -DGTEST_HAS_RTTI=0 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/buildbot/as-worker-4/publish-sphinx-docs/build/lib/Support -I/home/buildbot/as-worker-4/publish-sphinx-docs/llvm-project/llvm/lib/Support -I/home/buildbot/as-worker-4/publish-sphinx-docs/build/include -I/home/buildbot/as-worker-4/publish-sphinx-docs/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=c++17 -fno-exceptions -funwind-tables -fno-rtti -MD -MT lib/Support/CMakeFiles/LLVMSupport.dir/BuryPointer.cpp.o -MF lib/Support/CMakeFiles/LLVMSupport.dir/BuryPointer.cpp.o.d -o lib/Support/CMakeFiles/LLVMSupport.dir/BuryPointer.cpp.o -c /home/buildbot/as-worker-4/publish-sphinx-docs/llvm-project/llvm/lib/Support/BuryPointer.cpp
In file included from /home/buildbot/as-worker-4/publish-sphinx-docs/llvm-project/llvm/include/llvm/Support/BuryPointer.h:12,
from /home/buildbot/as-worker-4/publish-sphinx-docs/llvm-project/llvm/lib/Support/BuryPointer.cpp:9:
/home/buildbot/as-worker-4/publish-sphinx-docs/llvm-project/llvm/include/llvm/Support/Compiler.h:719:40: error: missing binary operator before token "("
719 | #if defined(__clang__) && __has_warning("-Wunnecessary-virtual-specifier")
| ^
1.033 [5344/22/6] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/ARMBuildAttributes.cpp.o
FAILED: lib/Support/CMakeFiles/LLVMSupport.dir/ARMBuildAttributes.cpp.o
/usr/bin/c++ -DGTEST_HAS_RTTI=0 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/buildbot/as-worker-4/publish-sphinx-docs/build/lib/Support -I/home/buildbot/as-worker-4/publish-sphinx-docs/llvm-project/llvm/lib/Support -I/home/buildbot/as-worker-4/publish-sphinx-docs/build/include -I/home/buildbot/as-worker-4/publish-sphinx-docs/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=c++17 -fno-exceptions -funwind-tables -fno-rtti -MD -MT lib/Support/CMakeFiles/LLVMSupport.dir/ARMBuildAttributes.cpp.o -MF lib/Support/CMakeFiles/LLVMSupport.dir/ARMBuildAttributes.cpp.o.d -o lib/Support/CMakeFiles/LLVMSupport.dir/ARMBuildAttributes.cpp.o -c /home/buildbot/as-worker-4/publish-sphinx-docs/llvm-project/llvm/lib/Support/ARMBuildAttributes.cpp
In file included from /home/buildbot/as-worker-4/publish-sphinx-docs/llvm-project/llvm/include/llvm/Support/ARMBuildAttributes.h:21,
from /home/buildbot/as-worker-4/publish-sphinx-docs/llvm-project/llvm/lib/Support/ARMBuildAttributes.cpp:9:
/home/buildbot/as-worker-4/publish-sphinx-docs/llvm-project/llvm/include/llvm/Support/Compiler.h:719:40: error: missing binary operator before token "("
719 | #if defined(__clang__) && __has_warning("-Wunnecessary-virtual-specifier")
| ^
1.080 [5344/21/7] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/ARMWinEH.cpp.o
FAILED: lib/Support/CMakeFiles/LLVMSupport.dir/ARMWinEH.cpp.o
/usr/bin/c++ -DGTEST_HAS_RTTI=0 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/buildbot/as-worker-4/publish-sphinx-docs/build/lib/Support -I/home/buildbot/as-worker-4/publish-sphinx-docs/llvm-project/llvm/lib/Support -I/home/buildbot/as-worker-4/publish-sphinx-docs/build/include -I/home/buildbot/as-worker-4/publish-sphinx-docs/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=c++17 -fno-exceptions -funwind-tables -fno-rtti -MD -MT lib/Support/CMakeFiles/LLVMSupport.dir/ARMWinEH.cpp.o -MF lib/Support/CMakeFiles/LLVMSupport.dir/ARMWinEH.cpp.o.d -o lib/Support/CMakeFiles/LLVMSupport.dir/ARMWinEH.cpp.o -c /home/buildbot/as-worker-4/publish-sphinx-docs/llvm-project/llvm/lib/Support/ARMWinEH.cpp
In file included from /home/buildbot/as-worker-4/publish-sphinx-docs/llvm-project/llvm/include/llvm/Support/ErrorHandling.h:17,
from /home/buildbot/as-worker-4/publish-sphinx-docs/llvm-project/llvm/include/llvm/ADT/Hashing.h:50,
from /home/buildbot/as-worker-4/publish-sphinx-docs/llvm-project/llvm/include/llvm/ADT/ArrayRef.h:12,
from /home/buildbot/as-worker-4/publish-sphinx-docs/llvm-project/llvm/include/llvm/Support/ARMWinEH.h:12,
from /home/buildbot/as-worker-4/publish-sphinx-docs/llvm-project/llvm/lib/Support/ARMWinEH.cpp:9:
/home/buildbot/as-worker-4/publish-sphinx-docs/llvm-project/llvm/include/llvm/Support/Compiler.h:719:40: error: missing binary operator before token "("
719 | #if defined(__clang__) && __has_warning("-Wunnecessary-virtual-specifier")
| ^
1.081 [5344/20/8] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/Allocator.cpp.o
FAILED: lib/Support/CMakeFiles/LLVMSupport.dir/Allocator.cpp.o
/usr/bin/c++ -DGTEST_HAS_RTTI=0 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/buildbot/as-worker-4/publish-sphinx-docs/build/lib/Support -I/home/buildbot/as-worker-4/publish-sphinx-docs/llvm-project/llvm/lib/Support -I/home/buildbot/as-worker-4/publish-sphinx-docs/build/include -I/home/buildbot/as-worker-4/publish-sphinx-docs/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=c++17 -fno-exceptions -funwind-tables -fno-rtti -MD -MT lib/Support/CMakeFiles/LLVMSupport.dir/Allocator.cpp.o -MF lib/Support/CMakeFiles/LLVMSupport.dir/Allocator.cpp.o.d -o lib/Support/CMakeFiles/LLVMSupport.dir/Allocator.cpp.o -c /home/buildbot/as-worker-4/publish-sphinx-docs/llvm-project/llvm/lib/Support/Allocator.cpp
In file included from /home/buildbot/as-worker-4/publish-sphinx-docs/llvm-project/llvm/include/llvm/ADT/SmallVector.h:18,
from /home/buildbot/as-worker-4/publish-sphinx-docs/llvm-project/llvm/include/llvm/Support/Allocator.h:20,
from /home/buildbot/as-worker-4/publish-sphinx-docs/llvm-project/llvm/lib/Support/Allocator.cpp:13:
/home/buildbot/as-worker-4/publish-sphinx-docs/llvm-project/llvm/include/llvm/Support/Compiler.h:719:40: error: missing binary operator before token "("
719 | #if defined(__clang__) && __has_warning("-Wunnecessary-virtual-specifier")
| ^
1.141 [5344/19/9] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/BlockFrequency.cpp.o
```
</details>
https://github.com/llvm/llvm-project/pull/139614
More information about the cfe-commits
mailing list