MS-SBVAR MEX: remove warning related to function not returning (-Wreturn-type)

kalman-mex
Sébastien Villemot 2023-09-22 13:22:05 +02:00
parent c424366440
commit 4a68cfcbd6
No known key found for this signature in database
GPG Key ID: 2CECE9350ECEBE4A
2 changed files with 10 additions and 1 deletions

View File

@ -28,6 +28,7 @@ extern "C"
int constant_seed;
[[noreturn]]
void
msExit([[maybe_unused]] int status)
{

View File

@ -1,5 +1,5 @@
/*
* Copyright © 2010-2020 Dynare Team
* Copyright © 2010-2023 Dynare Team
*
* This file is part of Dynare.
*
@ -39,7 +39,15 @@ extern bool utIsInterruptPending();
# include <octave/quit.h>
# 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);
extern int constant_seed;
#endif