diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2023-04-24 12:40:06 +0200 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2023-04-29 10:43:16 +0200 |
commit | 276de0b840925e727810341ed61a0849c9607e52 (patch) | |
tree | 5e907743724b03d39b1c898f938ba28b14a152a0 /java/openjdk8 | |
parent | java/openjdk8: Update to 8u372 (diff) |
textproc/source-highlight: fix build with clang 16
Since clang 16 (and gcc 11) the default C++ standard is now gnu++17.
Because textproc/source-highlight's Makefile does not explicitly set its C++
standard, this leads to several errors:
In file included from fileutil.cc:28:
./fileutil.h:30:41: error: ISO C++17 does not allow dynamic exception specifications [-Wdynamic-exception-spec]
string readFile(const string &fileName) throw (IOException);
^~~~~~~~~~~~~~~~~~~
./fileutil.h:30:41: note: use 'noexcept(false)' instead
string readFile(const string &fileName) throw (IOException);
^~~~~~~~~~~~~~~~~~~
noexcept(false)
fileutil.cc:51:41: error: ISO C++17 does not allow dynamic exception specifications [-Wdynamic-exception-spec]
string readFile(const string &fileName) throw (IOException) {
^~~~~~~~~~~~~~~~~~~
fileutil.cc:51:41: note: use 'noexcept(false)' instead
string readFile(const string &fileName) throw (IOException) {
^~~~~~~~~~~~~~~~~~~
noexcept(false)
In http://git.savannah.gnu.org/cgit/src-highlite.git/commit/?id=416b397
indicates that after 3.1.9 C++11 will be required and supported, so add
USE_CXXSTD=gnu++11 to avoid the errors for now.
PR: 271044
Approved by: tcberner (maintainer)
MFH 2023Q2
Diffstat (limited to 'java/openjdk8')
0 files changed, 0 insertions, 0 deletions