This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug translator/3093] Fails to build with GCC 4.2
- From: "eugen at debian dot org" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sources dot redhat dot com
- Date: 23 Aug 2006 13:44:36 -0000
- Subject: [Bug translator/3093] Fails to build with GCC 4.2
- References: <20060819174719.3093.eugen@debian.org>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From eugen at debian dot org 2006-08-23 13:44 -------
(In reply to comment #2)
> This is problematic as well, because putenv expects the string in its parameter
> to be persistent. We luck out here since the local arrays are in main, so they
> last "long enough", but it's still bad form.
>
yes, that was bad idea.
> I updated the patch to use setenv instead, which takes const char*, so it
> should be more friendly to assigning string constants. Please confirm that
> this patch compiles cleanly on gcc 4.2, and I will commit it.
This patch compiles cleanly with gcc 4.2.
--
http://sourceware.org/bugzilla/show_bug.cgi?id=3093
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.