From 701afa4b3a5ae3e93b92bd9a4fa013fadbe69774 Mon Sep 17 00:00:00 2001 From: Max Date: Fri, 1 Dec 2017 17:13:22 +0100 Subject: Fix compiler warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Move function declarations which use gprs_rlcmac_ul_tbf into tbf.h to avoid compiler warning: In file included from pcu_vty.c:15:0: bts.h:166:27: warning: ‘struct gprs_rlcmac_ul_tbf’ declared inside parameter list will not be visible outside of this definition or declaration void update_tbf_ta(struct gprs_rlcmac_ul_tbf *tbf, int8_t ta_delta); ^~~~~~~~~~~~~~~~~~ bts.h:167:24: warning: ‘struct gprs_rlcmac_ul_tbf’ declared inside parameter list will not be visible outside of this definition or declaration void set_tbf_ta(struct gprs_rlcmac_ul_tbf *tbf, uint8_t ta); ^~~~~~~~~~~~~~~~~~ Change-Id: Ic34c72c8bff6d7c775f56bb6026fec5425f7dcb4 --- src/tbf.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/tbf.h') diff --git a/src/tbf.h b/src/tbf.h index 95e1e892..e9d8df8e 100644 --- a/src/tbf.h +++ b/src/tbf.h @@ -562,6 +562,15 @@ protected: void maybe_schedule_uplink_acknack(const gprs_rlc_data_info *rlc); }; +#ifdef __cplusplus +extern "C" { +#endif +void update_tbf_ta(struct gprs_rlcmac_ul_tbf *tbf, int8_t ta_delta); +void set_tbf_ta(struct gprs_rlcmac_ul_tbf *tbf, uint8_t ta); +#ifdef __cplusplus +} +#endif + inline enum gprs_rlcmac_tbf_direction reverse(enum gprs_rlcmac_tbf_direction dir) { return (enum gprs_rlcmac_tbf_direction) -- cgit v1.2.3