zserge / expr

Fast and lightweight math expression evaluator in C99
MIT License
119 stars 23 forks source link

can't compile with strict C99 flags #5

Open chriscamacho opened 3 years ago

chriscamacho commented 3 years ago

There seems to be issues with anonymous unions and also with casting function pointers to void*

here are the flags I use

CFLAGS:= -Wfatal-errors -pedantic -Wall -Wextra -Werror -std=c99

While this might seem over fussy, its saved me countless hours of debugging frustration!

RokerHRO commented 2 months ago

It seems to be the same problem as in another expression parser: https://github.com/codeplea/tinyexpr/pull/47