Skip to content

Commit

Permalink
ext: explicitly allow C90 and C99 features
Browse files Browse the repository at this point in the history
Related to #2302 and #2303.
  • Loading branch information
flavorjones committed Aug 6, 2021
1 parent fd1e4e3 commit 0566abe
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ext/nokogiri/extconf.rb
Expand Up @@ -594,6 +594,10 @@ def do_clean
append_ldflags(ENV["LDFLAGS"].split) unless ENV["LDFLAGS"].nil?
$LIBS = concat_flags($LIBS, ENV["LIBS"])

# nokogumbo code uses C90/C99 features, let's make sure older compilers won't give
# errors/warnings. see #2302
append_cflags(["-std=c99", "-Wno-declaration-after-statement"])

# always include debugging information
append_cflags("-g")

Expand Down

0 comments on commit 0566abe

Please sign in to comment.