diff options
author | jistone <jistone> | 2006-08-23 20:54:03 +0000 |
---|---|---|
committer | jistone <jistone> | 2006-08-23 20:54:03 +0000 |
commit | c72dc86c194e788544560390e238eece2e4165e6 (patch) | |
tree | af4b4a4bae0444d7b905f9becb39f985e071b7be /tapsets.cxx | |
parent | 66cd5eb80666407f4f790a6cdd85e337d6b11838 (diff) | |
download | systemtap-steved-c72dc86c194e788544560390e238eece2e4165e6.tar.gz systemtap-steved-c72dc86c194e788544560390e238eece2e4165e6.tar.xz systemtap-steved-c72dc86c194e788544560390e238eece2e4165e6.zip |
2006-08-23 Josh Stone <joshua.i.stone@intel.com>
PR 3093
From Eugeniy Meshcheryakov <eugen@debian.org>:
* 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.
Diffstat (limited to 'tapsets.cxx')
-rw-r--r-- | tapsets.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
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 = { |