mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-15 11:13:29 +00:00
Bug 833405: Don't treat deprecated-declarations build warnings as errors, in --enable-warnings-as-errors builds. r=ted
This commit is contained in:
parent
25b0718e42
commit
48d8387670
@ -1398,7 +1398,12 @@ if test "$GNU_CC"; then
|
||||
DSO_LDOPTS="$DSO_LDOPTS -Wl,-z,defs"
|
||||
fi
|
||||
fi
|
||||
WARNINGS_AS_ERRORS='-Werror -Wno-error=uninitialized'
|
||||
WARNINGS_AS_ERRORS='-Werror'
|
||||
# Don't treat -Wuninitialized as error b/c it has lots of false positives.
|
||||
WARNINGS_AS_ERRORS="$WARNINGS_AS_ERRORS -Wno-error=uninitialized"
|
||||
# Don't treat -Wdeprecated-declarations as error b/c we don't want our
|
||||
# builds held hostage when a platform-specific API is suddenly deprecated.
|
||||
WARNINGS_AS_ERRORS="$WARNINGS_AS_ERRORS -Wno-error=deprecated-declarations"
|
||||
DSO_CFLAGS=''
|
||||
DSO_PIC_CFLAGS='-fPIC'
|
||||
ASFLAGS="$ASFLAGS -fPIC"
|
||||
|
@ -1188,7 +1188,12 @@ if test "$GNU_CC"; then
|
||||
DSO_LDOPTS="$DSO_LDOPTS -Wl,-z,defs"
|
||||
fi
|
||||
fi
|
||||
WARNINGS_AS_ERRORS='-Werror -Wno-error=uninitialized'
|
||||
WARNINGS_AS_ERRORS='-Werror'
|
||||
# Don't treat -Wuninitialized as error b/c it has lots of false positives.
|
||||
WARNINGS_AS_ERRORS="$WARNINGS_AS_ERRORS -Wno-error=uninitialized"
|
||||
# Don't treat -Wdeprecated-declarations as error b/c we don't want our
|
||||
# builds held hostage when a platform-specific API is suddenly deprecated.
|
||||
WARNINGS_AS_ERRORS="$WARNINGS_AS_ERRORS -Wno-error=deprecated-declarations"
|
||||
DSO_CFLAGS=''
|
||||
DSO_PIC_CFLAGS='-fPIC'
|
||||
ASFLAGS="$ASFLAGS -fPIC"
|
||||
|
Loading…
Reference in New Issue
Block a user