From 4f3d2a2aff351b2c202c8d6e7854a9e3a05153f2 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Mon, 22 May 2006 01:30:56 +0000 Subject: [PATCH] Add some more nonnull attributes. --- libdw/ChangeLog | 5 +++++ libdw/libdw.h | 9 +++++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/libdw/ChangeLog b/libdw/ChangeLog index ac421ce01..d904e4245 100644 --- a/libdw/ChangeLog +++ b/libdw/ChangeLog @@ -1,3 +1,8 @@ +2006-05-21 Ulrich Drepper + + * libdw.h: Add nonnull attributes to dwarf_tag, dwarf_getattrs, + dwarf_haschildren. + 2006-02-28 Roland McGrath * dwarf.h: Add missing DW_ATE_*, DW_TAG_*, DW_LANG_*, DW_CFA_*, diff --git a/libdw/libdw.h b/libdw/libdw.h index f3ab3ae5a..351aef26e 100644 --- a/libdw/libdw.h +++ b/libdw/libdw.h @@ -237,22 +237,23 @@ extern Dwarf_Die *dwarf_addrdie (Dwarf *dbg, Dwarf_Addr addr, /* Return child of current DIE. */ extern int dwarf_child (Dwarf_Die *die, Dwarf_Die *result) - __nonnull_attribute__ (2); + __nonnull_attribute__ (1, 2); /* Return sibling of given DIE. */ extern int dwarf_siblingof (Dwarf_Die *die, Dwarf_Die *result) __nonnull_attribute__ (2); /* Check whether the DIE has children. */ -extern int dwarf_haschildren (Dwarf_Die *die); +extern int dwarf_haschildren (Dwarf_Die *die) __nonnull_attribute__ (1); /* Get attributes of the DIE. */ extern ptrdiff_t dwarf_getattrs (Dwarf_Die *die, int (*callback) (Dwarf_Attribute *, void *), - void *arg, ptrdiff_t offset); + void *arg, ptrdiff_t offset) + __nonnull_attribute__ (2); /* Return tag of given DIE. */ -extern int dwarf_tag (Dwarf_Die *die); +extern int dwarf_tag (Dwarf_Die *die) __nonnull_attribute__ (1); /* Return specific attribute of DIE. */ -- 2.47.2