summaryrefslogtreecommitdiff
path: root/usr/src
diff options
context:
space:
mode:
authorToomas Soome <tsoome@me.com>2021-12-27 13:33:48 +0200
committerToomas Soome <tsoome@me.com>2022-01-11 19:34:01 +0200
commit3cff04e70c85c3630e534a8583132f191d2fca92 (patch)
tree5dfa7c761fee5905c83eb6a69ec4f69a6ef0c1a0 /usr/src
parent19f828dfeb540cb7af7e68528aa8711911d3ed39 (diff)
downloadillumos-gate-3cff04e70c85c3630e534a8583132f191d2fca92.tar.gz
14379 libast: build errors with gcc 11
Reviewed by: Peter Tribble <peter.tribble@gmail.com> Reviewed by: Andy Fiddaman <andy@omnios.org> Approved by: Dan McDonald <danmcd@joyent.com>
Diffstat (limited to 'usr/src')
-rw-r--r--usr/src/cmd/ast/libast/Makefile.com7
1 files changed, 7 insertions, 0 deletions
diff --git a/usr/src/cmd/ast/libast/Makefile.com b/usr/src/cmd/ast/libast/Makefile.com
index 112f741d28..a54d907edf 100644
--- a/usr/src/cmd/ast/libast/Makefile.com
+++ b/usr/src/cmd/ast/libast/Makefile.com
@@ -98,8 +98,15 @@ CERRWARN += -_gcc=-Wno-address
# Since this is third party source, silencing this warning seems to be
# reasonable path to take.
pics/path/pathpath.o := CERRWARN += -_gcc10=-Wno-return-local-addr
+pics/path/pathpath.o := CERRWARN += -_gcc11=-Wno-return-local-addr
pics/path/pathkey.o := CERRWARN += -_gcc10=-Wno-return-local-addr
+pics/path/pathkey.o := CERRWARN += -_gcc11=-Wno-return-local-addr
pics/path/pathprobe.o := CERRWARN += -_gcc10=-Wno-return-local-addr
+pics/path/pathprobe.o := CERRWARN += -_gcc11=-Wno-return-local-addr
+
+# The code layout after macro expansion is upsetting gcc 11, silence it.
+pics/sfio/sfdisc.o := CERRWARN += -_gcc11=-Wno-misleading-indentation
+pics/sfio/sfstack.o := CERRWARN += -_gcc11=-Wno-misleading-indentation
SMATCH= off