Skip to content

Commit

Permalink
Remove forgotten FILE_INFO argument. (#9797)
Browse files Browse the repository at this point in the history
  - `assertStreamPrint` is not yet fully updated to take FILE_INFO. It was
     forgotten in one branch of an `#ifdef`.
  • Loading branch information
mahge committed Nov 29, 2022
1 parent b0697aa commit cb8776f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions OMCompiler/SimulationRuntime/c/util/omc_error.h
Expand Up @@ -215,8 +215,8 @@ extern void throwStreamPrintWithEquationIndexes(threadData_t *threadData, FILE_I
#ifdef HAVE_VA_MACROS
#define assertStreamPrint(threadData, cond, ...) if (!(cond)) {throwStreamPrint((threadData), __VA_ARGS__); assert(0);}
#else
static void OMC_INLINE assertStreamPrint(threadData_t *threadData, FILE_INFO info, int cond, const char *format, ...) __attribute__ ((format (printf, 4, 5)));
static void OMC_INLINE assertStreamPrint(threadData_t *threadData, FILE_INFO info, int cond, const char *format, ...)
static void OMC_INLINE assertStreamPrint(threadData_t *threadData, int cond, const char *format, ...) __attribute__ ((format (printf, 3, 4)));
static void OMC_INLINE assertStreamPrint(threadData_t *threadData, int cond, const char *format, ...)
{
va_list args;
if (cond) return;
Expand Down

0 comments on commit cb8776f

Please sign in to comment.