commit e34631905f3dcfacb80f3e4cd3f9dca067980c5d parent 1b2abe9121af61480d3966bd5d2b4411751bcb6a Author: Michael Forney <mforney@mforney.org> Date: Mon, 30 Mar 2026 14:23:33 -0700 cc: Fix type of conditional operator used in PRTREE/PRCFG If one operand has void type, they both must have void type. Diffstat:
| M | src/cmd/scc-cc/cc2/cc2.h | | | 4 | ++-- |
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/cmd/scc-cc/cc2/cc2.h b/src/cmd/scc-cc/cc2/cc2.h @@ -4,8 +4,8 @@ #define PRCFG(msg) #define PRTREE(msg) #else -#define PRCFG(msg) (enadebug ? prcfg(msg) : NULL) -#define PRTREE(msg) (enadebug ? prforest(msg) : NULL) +#define PRCFG(msg) (enadebug ? prcfg(msg) : (void)0) +#define PRTREE(msg) (enadebug ? prforest(msg) : (void)0) #endif enum iflags {