Skip to content

Commit 38bf681

Browse files
Fixed build process for json-c on systems with fresh gcc (#752)
1 parent 59f990d commit 38bf681

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/fastnetmon_install.pl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -742,6 +742,11 @@ sub install_json_c {
742742
} else {
743743
exec_command("sed -i '355 s#^#//#' json_tokener.c");
744744
exec_command("sed -i '360 s#^#//#' json_tokener.c");
745+
746+
# Workaround complaints from fresh compilers
747+
if ($distro_type eq 'ubuntu' && $distro_version eq '18.04') {
748+
exec_command("sed -i -e '381 s/AM_CFLAGS =/AM_CFLAGS = -Wimplicit-fallthrough=0/ ' Makefile.in");
749+
}
745750
}
746751

747752
print "Build it\n";

0 commit comments

Comments
 (0)