sh (1): Remove -Werror conditionally due to seven clobber candidates
authorJohn Marino <draco@marino.st>
Tue, 10 Feb 2015 10:29:03 +0000 (11:29 +0100)
committerJohn Marino <draco@marino.st>
Tue, 10 Feb 2015 10:29:03 +0000 (11:29 +0100)
commit8cf7a7b1d5491c636f5b01597301597a32d40bc6
tree46419ac633d96c4dfdf4cf2670306f90bf6377be
parent1fff89cbaeaa43af720a1f23d9c466b756dd8a58
sh (1): Remove -Werror conditionally due to seven clobber candidates

GCC 5.0 is screaming about sh potentially getting clobbered by longjmp.
I don't know how to fix this and the WARNS system doesn't cover
-Wclobbered so I'm turning -Werror off forcibly until somebody else can
fix it.  The error messages are:

/usr/src/bin/sh/eval.c: In function 'exphere':
/usr/src/bin/sh/eval.c:496:6: warning: variable 'need_longjmp' might be
  clobbered by 'longjmp' or 'vfork' [-Wclobbered]
/usr/src/bin/sh/eval.c: In function 'evalcommand':
/usr/src/bin/sh/eval.c:794:6: warning: variable 'mode' might be clobbered
  by 'lngjmp' or 'vfork' [-Wclobbered]
/usr/src/bin/sh/eval.c:799:17: warning: variable 'savehandler' might be
  clobberd by 'longjmp' or 'vfork' [-Wclobbered]
/usr/src/bin/sh/histedit.c: In function 'histcmd':
/usr/src/bin/sh/histedit.c:192:8: error: variable 'pat' might be
  clobbered by 'longjmp' or 'vfork' [-Werror=clobbered]
/usr/src/bin/sh/histedit.c:198:8: error: variable 'efp' might be
  clobbered by 'longjmp' or 'vfork' [-Werror=clobbered]
/usr/src/bin/sh/parser.c: In function 'parsebackq':
/usr/src/bin/sh/parser.c:982:6: warning: variable 'saveprompt' might be
  clobbered by 'longjmp' or 'vfork' [-Wclobbered]
/usr/src/bin/sh/parser.c:973:18: warning: argument 'out' might be
  clobbered by longjmp' or 'vfork' [-Wclobbered]
bin/sh/Makefile