This is the mail archive of the mailing list for the elfutils project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[obv] Add __nonnull_attribute__ to dwfl_module_getelf

Hi Roland,

I have checked in this patch, it seems obvious enough to me.


commit 50f413ee377f3e3987b89f9726ba493a2038e9a2
Author: Jan Kratochvil <>
Date:   Wed Oct 17 22:04:24 2012 +0200

    2012-10-17  Jan Kratochvil  <>
    	* libdwfl.h (dwfl_module_getelf): Add __nonnull_attribute__.
    Signed-off-by: Jan Kratochvil <>

diff --git a/libdwfl/ChangeLog b/libdwfl/ChangeLog
index 189d3b7..638a096 100644
--- a/libdwfl/ChangeLog
+++ b/libdwfl/ChangeLog
@@ -1,3 +1,7 @@
+2012-10-17  Jan Kratochvil  <>
+	* libdwfl.h (dwfl_module_getelf): Add __nonnull_attribute__.
 2012-10-10  Jan Kratochvil  <>
 	* dwfl_segment_report_module.c (dwfl_segment_report_module):
diff --git a/libdwfl/libdwfl.h b/libdwfl/libdwfl.h
index 506a2a0..000d582 100644
--- a/libdwfl/libdwfl.h
+++ b/libdwfl/libdwfl.h
@@ -403,7 +403,8 @@ extern int dwfl_validate_address (Dwfl *dwfl,
    are found) for use with libelf.  If successful, fills in *BIAS
    with the difference between addresses within the loaded module
    and those in symbol tables or Dwarf information referring to it.  */
-extern Elf *dwfl_module_getelf (Dwfl_Module *, GElf_Addr *bias);
+extern Elf *dwfl_module_getelf (Dwfl_Module *, GElf_Addr *bias)
+  __nonnull_attribute__ (1, 2);
 /* Return the number of symbols in the module's symbol table,
    or -1 for errors.  */

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]