Skip to content

Commit

Permalink
Eliminate 'different const qualifiers' MSVC warning in CORD_cat
Browse files Browse the repository at this point in the history
(fix of commit f9b4b19)

Issue #627 (bdwgc).

* include/gc/gc.h [(!__GNUC__ || __INTEL_COMPILER) && !LINT2]
(GC_reachable_here): Use GC_CAST_AWAY_CONST_PVOID() for the argument.
  • Loading branch information
ivmai committed Jun 14, 2024
1 parent 43c3527 commit 0de30c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/gc/gc.h
Original file line number Diff line number Diff line change
Expand Up @@ -1520,7 +1520,7 @@ GC_API int GC_CALL GC_invoke_finalizers(void);
# define GC_reachable_here(ptr) GC_noop1(~(GC_word)(ptr)^(~(GC_word)0))
/* The expression is similar to that of COVERT_DATAFLOW(). */
#else
# define GC_reachable_here(ptr) GC_noop1_ptr(ptr)
# define GC_reachable_here(ptr) GC_noop1_ptr(GC_CAST_AWAY_CONST_PVOID(ptr))
#endif

/* Make the argument of word type appear live to compiler. This could */
Expand Down

0 comments on commit 0de30c3

Please sign in to comment.