Permalink
Browse files

the arg to remove_handle_entry() can be NULL

  • Loading branch information...
1 parent 53a07f9 commit 5b6d3dc4f837ba21a75f5d2487622356b85d1858 @petdance petdance committed Apr 3, 2012
Showing with 3 additions and 6 deletions.
  1. +3 −6 src/platform/generic/dl.c
@@ -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 */
@@ -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)

0 comments on commit 5b6d3dc

Please sign in to comment.