This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
compilation warning in gcc 3.x
- From: Wenji Huang <wenji dot huang at oracle dot com>
- To: systemtap at sources dot redhat dot com
- Date: Tue, 12 Aug 2008 09:31:18 +0800
- Subject: compilation warning in gcc 3.x
Hi,
There will be one compilation warning which will be treated as error in
latest tree.
tapsets.cxx:2070: warning: converting of negative value '-0x00000001' to
'Dwarf_Word'
This only happens on gcc 3.x, but will pass on gcc 4.x.
Seems it needs explicitly type cast:
- Dwarf_Word encoding = -1;
+ Dwarf_Word encoding = (Dwarf_Word)-1;
Regards,
Wenji