Skip to content

Commit

Permalink
Disable maybe-uninitialized warning for gcc 4
Browse files Browse the repository at this point in the history
It often shows false positive warnings (at least in 4.8).  Newer
versions work well and we can check correct warnings.
  • Loading branch information
nobu committed Jun 18, 2022
1 parent cab10a2 commit e77d2c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -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=
Expand Down

0 comments on commit e77d2c2

Please sign in to comment.