From 75a1cdf2f3a0e5a5a8b6bf1314cf71d23ea6d58b Mon Sep 17 00:00:00 2001 From: Petr Machata Date: Fri, 8 Oct 2010 19:47:37 +0200 Subject: [PATCH] dwarflint: Nits --- dwarflint/check_debug_info.cc | 2 +- dwarflint/dwarf_version.hh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dwarflint/check_debug_info.cc b/dwarflint/check_debug_info.cc index c28a043cc..406d0c887 100644 --- a/dwarflint/check_debug_info.cc +++ b/dwarflint/check_debug_info.cc @@ -623,7 +623,6 @@ namespace where.ref = &it->where; int form_name = it->form; - form const *form = ver->get_form (form_name); attribute const *attribute = ver->get_attribute (it->name); bool indirect = form_name == DW_FORM_indirect; if (indirect) @@ -669,6 +668,7 @@ namespace wr_error (&where, ": indirect form is again indirect.\n"); return -1; } + form const *form = ver->get_form (form_name); value_check_cb_t value_check_cb = NULL; diff --git a/dwarflint/dwarf_version.hh b/dwarflint/dwarf_version.hh index 3868df82e..dd1fd45bb 100644 --- a/dwarflint/dwarf_version.hh +++ b/dwarflint/dwarf_version.hh @@ -121,7 +121,7 @@ public: /// Return value is never fw_offset or fw_address. These get /// resolved to fw_4 or fw_8 depending on corresponding value in /// CU->head. - form_width_t width (cu const *cu = NULL) const; + form_width_t width (cu const *cu) const; /// Return storage class of given form. Closely related to width. storage_class_t -- 2.47.2