Skip to content

Commit

Permalink
the arg to remove_handle_entry() can be NULL
Browse files Browse the repository at this point in the history
  • Loading branch information
petdance committed Apr 3, 2012
1 parent 53a07f9 commit 5b6d3dc
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/platform/generic/dl.c
Expand Up @@ -40,15 +40,12 @@ static void * find_handle_entry(ARGIN(const void *handle))
static void push_handle_entry(ARGIN(void *handle))
__attribute__nonnull__(1);

static void remove_handle_entry(ARGIN(void *handle))
__attribute__nonnull__(1);

static void remove_handle_entry(ARGIN_NULLOK(void *handle));
#define ASSERT_ARGS_find_handle_entry __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
PARROT_ASSERT_ARG(handle))
#define ASSERT_ARGS_push_handle_entry __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
PARROT_ASSERT_ARG(handle))
#define ASSERT_ARGS_remove_handle_entry __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
PARROT_ASSERT_ARG(handle))
#define ASSERT_ARGS_remove_handle_entry __attribute__unused__ int _ASSERT_ARGS_CHECK = (0)
/* Don't modify between HEADERIZER BEGIN / HEADERIZER END. Your changes will be lost. */
/* HEADERIZER END: static */

Expand Down Expand Up @@ -99,7 +96,7 @@ find_handle_entry(ARGIN(const void *handle))
}

static void
remove_handle_entry(ARGIN(void *handle))
remove_handle_entry(ARGIN_NULLOK(void *handle))
{
ASSERT_ARGS(remove_handle_entry)

Expand Down

0 comments on commit 5b6d3dc

Please sign in to comment.