MS-SBVAR MEX: remove warning related to function not returning (-Wreturn-type)
parent
c424366440
commit
4a68cfcbd6
|
@ -28,6 +28,7 @@ extern "C"
|
||||||
|
|
||||||
int constant_seed;
|
int constant_seed;
|
||||||
|
|
||||||
|
[[noreturn]]
|
||||||
void
|
void
|
||||||
msExit([[maybe_unused]] int status)
|
msExit([[maybe_unused]] int status)
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright © 2010-2020 Dynare Team
|
* Copyright © 2010-2023 Dynare Team
|
||||||
*
|
*
|
||||||
* This file is part of Dynare.
|
* This file is part of Dynare.
|
||||||
*
|
*
|
||||||
|
@ -39,7 +39,15 @@ extern bool utIsInterruptPending();
|
||||||
# include <octave/quit.h>
|
# include <octave/quit.h>
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
|
// NB: C23 has the [[noreturn]] attribute, so this #ifdef can be removed when
|
||||||
|
// we upgrade
|
||||||
|
#ifdef __cplusplus
|
||||||
|
[[noreturn]]
|
||||||
|
#else
|
||||||
|
_Noreturn
|
||||||
|
#endif
|
||||||
void msExit(int status);
|
void msExit(int status);
|
||||||
|
|
||||||
extern int constant_seed;
|
extern int constant_seed;
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue