baldurk / renderdoc

RenderDoc is a stand-alone graphics debugging tool.
https://renderdoc.org
MIT License
8.67k stars 1.31k forks source link

add option '-Wno-error=template-id-cdtor' #3373

Closed feng716 closed 2 weeks ago

feng716 commented 2 weeks ago

Description

I tried to compile qrenderdoc with g++14, but it failed with the following message:

/usr/include/qt/QtCore/qfutureinterface.h:284:37: error: template-id not allowed for constructor in C++20 [-Werror=
template-id-cdtor]
  284 |     explicit QFutureInterface<void>(State initialState = NoState)
      |                                     ^~~~~
/usr/include/qt/QtCore/qfutureinterface.h:284:37: note: remove the ‘< >’
cc1plus: note: unrecognized command-line option ‘-Wno-unknown-warning’ may have been intended to silence earlier di
agnostics

It seems that adding the option solves this problem