summaryrefslogtreecommitdiff
path: root/libc/debian/patches/libelf-no-clobber-warning.patch
blob: 9447125c962a6b08cfd9de5a1c6ca855d4b4c3dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Description: disable warnning
../misc/demangle.c: In function 'elf_demangle':
../misc/demangle.c:123:15: error: variable 'i' might be clobbered by 'longjmp' or 'vfork' [-Werror=clobbered]
  register int i = 0;

Index: b/usr/src/cmd/sgs/libelf/Makefile.com
===================================================================
--- a/usr/src/cmd/sgs/libelf/Makefile.com
+++ b/usr/src/cmd/sgs/libelf/Makefile.com
@@ -72,6 +72,7 @@ LINTFLAGS64 +=	-u -erroff=E_CAST_INT_TO_
 
 CERRWARN +=	-_gcc=-Wno-parentheses
 CERRWARN +=	-_gcc=-Wno-uninitialized
+CERRWARN +=	-_gcc=-Wno-clobbered
 
 BUILD.AR=	$(RM) $@ ; \
 $(AR) q $@ `$(LORDER) $(OBJECTS:%=$(DIR)/%)| $(TSORT)` ; \