Mercurial > octave
changeset 31362:4e12be13186d
build: Silence unused function compilation warning in mex.cc (bug #63210)
* mex.cc (maybe_disown_ptr): Surround use of maybe_disown_ptr() prototype and
function definition with
"#if defined (OCTAVE_HAVE_STD_PMR_POLYMORPHIC_ALLOCATOR)".
author | Rik <rik@octave.org> |
---|---|
date | Sat, 29 Oct 2022 17:57:56 -0700 |
parents | 5cc53fd090c3 |
children | af38813e5b89 |
files | libinterp/corefcn/mex.cc |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/corefcn/mex.cc Sat Oct 29 17:46:50 2022 -0700 +++ b/libinterp/corefcn/mex.cc Sat Oct 29 17:57:56 2022 -0700 @@ -450,7 +450,9 @@ static inline void * maybe_mark_foreign (void *ptr); +#if defined (OCTAVE_HAVE_STD_PMR_POLYMORPHIC_ALLOCATOR) static inline void maybe_disown_ptr (void *ptr); +#endif #define VOID_MUTATION_METHOD(FCN_NAME, ARG_LIST) \ void FCN_NAME ARG_LIST { request_mutation (); } @@ -3757,6 +3759,8 @@ return ptr; } +#if defined (OCTAVE_HAVE_STD_PMR_POLYMORPHIC_ALLOCATOR) + static inline void maybe_disown_ptr (void *ptr) { @@ -3768,6 +3772,8 @@ } } +#endif + static inline mxArray * maybe_unmark_array (mxArray *ptr) {