Skip to content

Commit

Permalink
Revert "Eliminate 'different const qualifiers' MSVC warnings in noop1…
Browse files Browse the repository at this point in the history
…_ptr"

Issue #627 (bdwgc).

This reverts commit f985d63.

Reason: GC_noop1_ptr() should not tell the compiler that the argument
is a const pointer.
  • Loading branch information
ivmai committed Jun 14, 2024
1 parent 03560ac commit 43c3527
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/gc/gc.h
Original file line number Diff line number Diff line change
Expand Up @@ -1530,7 +1530,7 @@ GC_API int GC_CALL GC_invoke_finalizers(void);
GC_API void GC_CALL GC_noop1(GC_word);

/* Same as GC_noop1() but for a pointer. */
GC_API void GC_CALL GC_noop1_ptr(const volatile void *);
GC_API void GC_CALL GC_noop1_ptr(volatile void *);

/* GC_set_warn_proc can be used to redirect or filter warning messages. */
/* p may not be a NULL pointer. msg is printf format string (arg must */
Expand Down
2 changes: 1 addition & 1 deletion mark.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ GC_API void GC_CALL GC_noop1(GC_word x)
# endif
}

GC_API void GC_CALL GC_noop1_ptr(const volatile void *p)
GC_API void GC_CALL GC_noop1_ptr(volatile void *p)
{
GC_noop1(ADDR(p));
}
Expand Down

0 comments on commit 43c3527

Please sign in to comment.