git: sh (1): Remove -Werror conditionally due to seven clobber candidates

John Marino marino at crater.dragonflybsd.org
Tue Feb 10 02:34:34 PST 2015


commit 8cf7a7b1d5491c636f5b01597301597a32d40bc6
Author: John Marino <draco at marino.st>
Date:   Tue Feb 10 11:29:03 2015 +0100

    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]

Summary of changes:
 bin/sh/Makefile | 1 +
 1 file changed, 1 insertion(+)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/8cf7a7b1d5491c636f5b01597301597a32d40bc6


-- 
DragonFly BSD source repository


More information about the Commits mailing list