]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
Some compile nits for GCC 4.4
authorRoland McGrath <roland@redhat.com>
Tue, 16 Jun 2009 05:09:50 +0000 (22:09 -0700)
committerRoland McGrath <roland@redhat.com>
Tue, 16 Jun 2009 05:09:50 +0000 (22:09 -0700)
libdw/c++/dwarf
libdw/c++/dwarf_edit
libdw/libdwP.h
tests/ChangeLog
tests/dwarf-print.cc

index 45dc558f71a011b080d792f6c2a7045cdcdbb0ce..591d5e1ddf9adc011cf682ea704cab3a87504566 100644 (file)
@@ -295,7 +295,7 @@ namespace elfutils
       raw _m_raw;
 
     protected:
-      inline skipping_wrapper (const raw &raw) : _m_raw (raw) {}
+      inline skipping_wrapper (const raw &r) : _m_raw (r) {}
 
     public:
       inline skipping_wrapper (const skipping_wrapper &w) : _m_raw (w._m_raw) {}
index e2811bbd2f29e9b509677828cff2429d97bb38bd..83051e5d652efb95ba4671399007ddcb5f026382 100644 (file)
@@ -139,8 +139,8 @@ namespace elfutils
 
       /* The template constructor lets us copy in from any class that has
         compatibly iterable containers for attributes and children.  */
-      template<typename die>
-      debug_info_entry (const die &die)
+      template<typename die_type>
+      debug_info_entry (const die_type &die)
        : _m_tag (die.tag ()),
          _m_attributes (die.attributes ()),
          _m_children (die.children ())
@@ -197,8 +197,8 @@ namespace elfutils
 
       // XXX should be private
     public:
-      template<typename die>
-      compile_unit (const die &die) : debug_info_entry (die)
+      template<typename die_type>
+      compile_unit (const die_type &die) : debug_info_entry (die)
       {
        if (die.tag () != ::DW_TAG_compile_unit)
          throw std::invalid_argument ("not a compile_unit entry");
index d630cd376ded713224909684b48e9f55fb5e41fb..09f29d1ef8a59704a69295b5e62510c2b8d5cbbc 100644 (file)
@@ -426,6 +426,7 @@ extern int __libdw_visit_scopes (unsigned int depth,
 extern int __dwarf_errno_internal (void);
 
 
+#ifndef __cplusplus
 /* Reader hooks.  */
 
 /* Relocation hooks return -1 on error (in that case the error code
@@ -573,7 +574,7 @@ unsigned char * __libdw_formptr (Dwarf_Attribute *attr, int sec_index,
                                 int err_nodata, unsigned char **endpp,
                                 Dwarf_Off *offsetp)
   internal_function;
-
+#endif /* Not C++ */
 
 
 /* Aliases to avoid PLTs.  */
index 39245f84fae4c99d4b3e8e924a3db2617b13f49a..3c734f45b452ea1d97936593f0fb37be0aa68d06 100644 (file)
@@ -1,3 +1,7 @@
+2009-06-15  Roland McGrath  <roland@redhat.com>
+
+       * dwarf-print.cc: Include <cstdio>.
+
 2009-03-25  Petr Machata  <pmachata@redhat.com>
 
        * dwarf-attributes.cc: New file.
index 8aa12ca970b1e7563170b263ec075fb694a54466..ef2536d8d5fc94cd0f71ba631806cc8b9ade4501 100644 (file)
@@ -31,6 +31,7 @@
 #include <error.h>
 #include <fcntl.h>
 #include <clocale>
+#include <cstdio>
 #include <libintl.h>
 #include <ostream>
 #include <iomanip>