[master] 0b2d05c my macos test was missing the strict compiler flags

Nils Goroll nils.goroll at uplex.de
Tue Nov 8 20:34:05 CET 2016


commit 0b2d05cf1b59612228f30ca3f5eb25495f31e6ac
Author: Nils Goroll <nils.goroll at uplex.de>
Date:   Tue Nov 8 20:28:14 2016 +0100

    my macos test was missing the strict compiler flags

diff --git a/lib/libvarnish/vtim.c b/lib/libvarnish/vtim.c
index 8b43f50..ae19c6f 100644
--- a/lib/libvarnish/vtim.c
+++ b/lib/libvarnish/vtim.c
@@ -95,7 +95,7 @@ static const int days_before_month[] = {
 static uint64_t mt_base;
 static double   mt_scale;
 
-void
+static void
 mach_time_init(void)
 {
 	mach_timebase_info_data_t timebase;
@@ -106,7 +106,7 @@ mach_time_init(void)
 	mt_scale = (double)timebase.numer / (double)timebase.denom * 1e-9;
 }
 
-__attribute__((constructor)) void
+static __attribute__((constructor)) void
 init(void)
 {
 	mach_time_init();



More information about the varnish-commit mailing list