From 173ef90a539dc33bb8fc395c0315320a4525a8d6 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Fri, 4 Mar 2016 17:54:09 +0100 Subject: pcu: Fix compiler warning about using string MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Make the gsmtap hostname const to avoid turning a constant into a mutable character. We never tried to modify the string so the warning didn't reveal a genuine issue. pcu_main.cpp:49:28: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings] static char *gsmtap_addr = "localhost"; // FIXME: use gengetopt's default value instead --- src/pcu_main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/pcu_main.cpp b/src/pcu_main.cpp index 4126d063..f66c6310 100644 --- a/src/pcu_main.cpp +++ b/src/pcu_main.cpp @@ -46,7 +46,7 @@ void *tall_pcu_ctx; extern void *bv_tall_ctx; static int quit = 0; static int rt_prio = -1; -static char *gsmtap_addr = "localhost"; // FIXME: use gengetopt's default value instead +static const char *gsmtap_addr = "localhost"; // FIXME: use gengetopt's default value instead static void print_help() { -- cgit v1.2.3