From 3635261ef91fc4c76eb6157af064cda02cd38c44 Mon Sep 17 00:00:00 2001 From: Gavin Howard Date: Sun, 8 Aug 2021 22:02:15 -0600 Subject: Do one last tweak to prevent compiler warnings Signed-off-by: Gavin Howard --- src/program.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/program.c b/src/program.c index c943db82..1ba012e5 100644 --- a/src/program.c +++ b/src/program.c @@ -2627,9 +2627,11 @@ void bc_program_exec(BcProgram *p) { #if BC_ENABLED BcNum *num; #endif // BC_ENABLED +#if !BC_HAS_COMPUTED_GOTO #ifndef NDEBUG size_t jmp_bufs_len; #endif // NDEBUG +#endif // !BC_HAS_COMPUTED_GOTO #if BC_HAS_COMPUTED_GOTO BC_PROG_LBLS; @@ -3165,15 +3167,17 @@ void bc_program_exec(BcProgram *p) { abort(); #endif // NDEBUG } -#endif // !C_HAS_COMPUTED_GOTO +#endif // BC_HAS_COMPUTED_GOTO } +#if !BC_HAS_COMPUTED_GOTO #ifndef NDEBUG // This is to allow me to use a debugger to see the last instruction, // which will point to which function was the problem. But it's also a // good smoke test for error handling changes. assert(jmp_bufs_len == vm.jmp_bufs.len); #endif // NDEBUG +#endif // !BC_HAS_COMPUTED_GOTO } } -- cgit v1.2.3