зеркало из https://github.com/github/ruby.git
Disable maybe-uninitialized warning for gcc 4
It often shows false positive warnings (at least in 4.8). Newer versions work well and we can check correct warnings.
This commit is contained in:
Родитель
cab10a2c50
Коммит
e77d2c296e
|
@ -642,7 +642,7 @@ AS_CASE(["$GCC:${warnflags+set}:${extra_warnflags:+set}:"],
|
|||
AS_IF([test $gcc_major -ge 4], [
|
||||
extra_warnflags="$extra_warnflags -Werror=extra-tokens"
|
||||
])
|
||||
AS_IF([test $gcc_major -ge 5 -a $gcc_major -le 6], [
|
||||
AS_IF([test $gcc_major -ge 4 -a $gcc_major -le 6], [
|
||||
extra_warnflags="$extra_warnflags -Wno-maybe-uninitialized"
|
||||
])
|
||||
# ICC doesn't support -Werror=
|
||||
|
|
Загрузка…
Ссылка в новой задаче