Skip to content

Commit 00cb73a

Browse files
authored
kcodecs: Avoid clang-18 error (google#11755)
As soon as selecting C++17, at least in clang-18, it will fail: ``` ./getline.cc:58:7: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 58 | register int c = getc (stream); | ^~~~~~~~ 1 error generated. Co-authored-by: MarcoFalke <[email protected]>
1 parent 58d6d1e commit 00cb73a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

projects/kcodecs/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ FUZZ_CXXFLAGS="${CXXFLAGS}"
2323
unset CFLAGS
2424
unset CXXFLAGS
2525
# gperf is a code generator, so no need to sanitize it
26-
./configure --prefix=/usr
26+
./configure --prefix=/usr CXX='clang++ -std=c++14' # Avoid C++17 due to clang-18 error
2727
make -j$(nproc) install
2828
export CFLAGS="${FUZZ_CFLAGS}"
2929
export CXXFLAGS="${FUZZ_CXXFLAGS}"

0 commit comments

Comments
 (0)