Skip to content

Commit

Permalink
Fixed build process for json-c on systems with fresh gcc (#752)
Browse files Browse the repository at this point in the history
  • Loading branch information
pavel-odintsov authored Feb 13, 2019
1 parent 59f990d commit 38bf681
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/fastnetmon_install.pl
Original file line number Diff line number Diff line change
Expand Up @@ -742,6 +742,11 @@ sub install_json_c {
} else {
exec_command("sed -i '355 s#^#//#' json_tokener.c");
exec_command("sed -i '360 s#^#//#' json_tokener.c");

# Workaround complaints from fresh compilers
if ($distro_type eq 'ubuntu' && $distro_version eq '18.04') {
exec_command("sed -i -e '381 s/AM_CFLAGS =/AM_CFLAGS = -Wimplicit-fallthrough=0/ ' Makefile.in");
}
}

print "Build it\n";
Expand Down

0 comments on commit 38bf681

Please sign in to comment.