Skip to content
Browse files

Fix push_handle_entry signature. NULL handles are kind of valid

  • Loading branch information...
1 parent 5b6d3dc commit c32af4bebf70b264d2497a924a733b7f4e4ca2d3 @bacek bacek committed Apr 3, 2012
Showing with 3 additions and 6 deletions.
  1. +3 −6 src/platform/generic/dl.c
View
9 src/platform/generic/dl.c
@@ -37,14 +37,11 @@ PARROT_CAN_RETURN_NULL
static void * find_handle_entry(ARGIN(const void *handle))
__attribute__nonnull__(1);
-static void push_handle_entry(ARGIN(void *handle))
- __attribute__nonnull__(1);
-
+static void push_handle_entry(ARGIN_NULLOK(void *handle));
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_push_handle_entry __attribute__unused__ int _ASSERT_ARGS_CHECK = (0)
#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 */
@@ -62,7 +59,7 @@ struct handle_entry {
struct handle_entry *handle_list = NULL;
static void
-push_handle_entry(ARGIN(void *handle))
+push_handle_entry(ARGIN_NULLOK(void *handle))
{
ASSERT_ARGS(push_handle_entry)

0 comments on commit c32af4b

Please sign in to comment.
Something went wrong with that request. Please try again.