[PATCH 4/9] femtobts: Remove code that is causing warnings with GCC 4.8

Holger Hans Peter Freyther hfreyther at sysmocom.de
Tue Jul 30 19:26:42 UTC 2013


From: Holger Hans Peter Freyther <holger at moiji-mobile.com>

femtobts.c:250:2: warning: excess elements in array initializer [enabled by default]
  { SuperFemto_ClkSrcId_NetList, "nwl" },
  ^
femtobts.c:250:2: warning: (near initialization for ‘femtobts_clksrc_names’) [enabled by default]
femtobts.c:251:2: warning: excess elements in array initializer [enabled by default]
  { 0, NULL }
  ^
femtobts.c:251:2: warning: (near initialization for ‘femtobts_clksrc_names’) [enabled by default]
---
 src/femtobts.c | 13 -------------
 src/femtobts.h |  2 --
 2 files changed, 15 deletions(-)

diff --git a/src/femtobts.c b/src/femtobts.c
index 69b33be..f6957d2 100644
--- a/src/femtobts.c
+++ b/src/femtobts.c
@@ -238,19 +238,6 @@ const struct value_string femtobts_tch_pl_names[] = {
 	{ 0, NULL }
 };
 
-const struct value_string femtobts_clksrc_names[] = {
-	{ SuperFemto_ClkSrcId_None,	"None" },
-	{ SuperFemto_ClkSrcId_Ocxo,	"ocxo" },
-	{ SuperFemto_ClkSrcId_Tcxo,	"tcxo" },
-	{ SuperFemto_ClkSrcId_External,	"ext" },
-	{ SuperFemto_ClkSrcId_GpsPps,	"gps" },
-	{ SuperFemto_ClkSrcId_Trx,	"trx" },
-	{ SuperFemto_ClkSrcId_Rx,	"rx" },
-	{ SuperFemto_ClkSrcId_Edge,	"edge" },
-	{ SuperFemto_ClkSrcId_NetList,	"nwl" },
-	{ 0, NULL }
-};
-
 const struct value_string femtobts_dir_names[] = {
 	{ GsmL1_Dir_TxDownlink,	"TxDL" },
 	{ GsmL1_Dir_TxUplink,	"TxUL" },
diff --git a/src/femtobts.h b/src/femtobts.h
index f2ac59d..7e45578 100644
--- a/src/femtobts.h
+++ b/src/femtobts.h
@@ -33,8 +33,6 @@ const struct value_string femtobts_tracef_names[29];
 
 const struct value_string femtobts_tch_pl_names[15];
 
-const struct value_string femtobts_clksrc_names[8];
-
 const struct value_string femtobts_dir_names[6];
 
 enum pdch_cs {
-- 
1.8.3.2





More information about the osmocom-net-gprs mailing list