]> sourceware.org Git - libabigail.git/commitdiff
Declare eval_last_constant_dwarf_sub_expr with [u]int64_t not [s]size_t.
authorMark Wielaard <mark@klomp.org>
Sat, 2 Sep 2017 13:04:57 +0000 (15:04 +0200)
committerDodji Seketeli <dodji@redhat.com>
Mon, 4 Sep 2017 07:49:01 +0000 (09:49 +0200)
On 32bit platforms [s]size_t isn't the same as [u]int64_t causing:

abg-dwarf-reader.cc:358:1: warning: ‘bool abigail::dwarf_reader::eval_last_constant_dwarf_sub_expr(Dwarf_Op*, size_t, ssize_t&, bool&)’ declared ‘static’ but never defined [-Wunused-function]

* src/abg-dwarf-reader.cc (eval_last_constant_dwarf_sub_expr):
Declare expr_len as uint64_t and value as int64_t.

Signed-off-by: Mark Wielaard <mark@klomp.org>
src/abg-dwarf-reader.cc

index 30eac7b51367453d74f7f9ad43112222500b0d31..7b4ab2bd97aec393fe7afa9059d2d1e9e3ec0ebf 100644 (file)
@@ -356,8 +356,8 @@ die_is_at_class_scope(const read_context& ctxt,
                      Dwarf_Die& class_scope_die);
 static bool
 eval_last_constant_dwarf_sub_expr(Dwarf_Op*    expr,
-                                 size_t        expr_len,
-                                 ssize_t&      value,
+                                 uint64_t      expr_len,
+                                 int64_t&      value,
                                  bool& is_tls_address);
 
 static translation_unit::language
This page took 0.04377 seconds and 5 git commands to generate.