From c72dc86c194e788544560390e238eece2e4165e6 Mon Sep 17 00:00:00 2001 From: jistone Date: Wed, 23 Aug 2006 20:54:03 +0000 Subject: 2006-08-23 Josh Stone PR 3093 From Eugeniy Meshcheryakov : * main.cxx (main): Use setenv instead of putenv, since gcc 4.2 doesn't like assigning string constants to char*. Also use const char* for result from getenv. * tapsets.cxx (dwflpp::setup): Copy string constant into a local array, to fix gcc 4.2 warning. --- tapsets.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tapsets.cxx') diff --git a/tapsets.cxx b/tapsets.cxx index 6d843d5b..2aa5e1b7 100644 --- a/tapsets.cxx +++ b/tapsets.cxx @@ -763,7 +763,8 @@ dwflpp void setup(bool kernel) { // XXX: this is where the session -R parameter could come in - static char* debuginfo_path = "-:.debug:/usr/lib/debug"; + static char debuginfo_path_arr[] = "-:.debug:/usr/lib/debug"; + static char *debuginfo_path = debuginfo_path_arr; static const Dwfl_Callbacks proc_callbacks = { -- cgit