From 656d0563877dd58aefb7a712425c32dd9c1b913e Mon Sep 17 00:00:00 2001 From: Cedric Roux <cedric.roux@eurecom.fr> Date: Mon, 1 Jun 2015 14:52:05 +0000 Subject: [PATCH] minor compiler warning removal/formatting cleanup git-svn-id: http://svn.eurecom.fr/openair4G/trunk@7507 818b1a75-f10b-46b9-bf7c-635c3b92a50f --- openair1/PHY/TOOLS/time_meas.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/openair1/PHY/TOOLS/time_meas.h b/openair1/PHY/TOOLS/time_meas.h index 67c0f32f4..a72754c77 100644 --- a/openair1/PHY/TOOLS/time_meas.h +++ b/openair1/PHY/TOOLS/time_meas.h @@ -129,9 +129,9 @@ static inline void stop_meas(time_stats_t *ts) } } -static inline void reset_meas(time_stats_t *ts) { - - static cpu_freq_set=0; +static inline void reset_meas(time_stats_t *ts) +{ + static int cpu_freq_set=0; if (opp_enabled) { ts->trials=0; @@ -141,7 +141,7 @@ static inline void reset_meas(time_stats_t *ts) { ts->diff_square=0; ts->max=0; - if (cpu_freq_set == 0 ){ + if (cpu_freq_set == 0) { cpu_freq_set = 1; get_cpu_freq_GHz(); printf("CPU Freq is %f \n", cpu_freq_GHz); @@ -149,6 +149,7 @@ static inline void reset_meas(time_stats_t *ts) { } } + static inline void copy_meas(time_stats_t *dst_ts,time_stats_t *src_ts) { -- GitLab