From: Ben Pfaff Date: Sat, 7 Dec 2013 16:17:55 +0000 (-0800) Subject: coverage: Fix build when linker sections not supported. X-Git-Tag: sliver-openvswitch-2.1.90-1~10^2~225 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=54d68e0edfc40592e2f3c0b088c075d8793b5359;p=sliver-openvswitch.git coverage: Fix build when linker sections not supported. With this change, OVS builds and runs fine without linker section support. CC: Linda Sun CC: Saurabh Shah Signed-off-by: Ben Pfaff --- diff --git a/lib/coverage.c b/lib/coverage.c index aae993716..c7a00284e 100644 --- a/lib/coverage.c +++ b/lib/coverage.c @@ -48,7 +48,7 @@ extern struct coverage_counter *__stop_coverage[]; } \ extern struct coverage_counter counter_##COUNTER; \ struct coverage_counter counter_##COUNTER \ - = { #COUNTER, COUNTER##_count, 0 }; + = { #COUNTER, COUNTER##_count, 0, 0, {0}, {0} }; #include "coverage.def" #undef COVERAGE_COUNTER