Closed sezero closed 5 years ago
Hi, what's the error message that Watcom gives for this? Thanks
Hi, what's the error message that Watcom gives for this? Thanks
lodepng.c(613): Error! E1054: Expression must be constant
Hmm, I wonder why gcc and clang aren't giving this error. Accepting in case it breaks on more compilers, thanks for finding this!
Hmm, I wonder why gcc and clang aren't giving this error.
Watcom is too strict for it. IIRC, it used to have a special switch that makes it accecpt non-constant initializers?, but never used it my self and don't know how experimental/reliable it is.
fixes build by Watcom.