Hello there,

________________________________


>Thanks a lot for spotting it.

You are welcome.

>I wonder why gcc, clang or coverity do not spot this, though.

gcc and clang are compilers. Too often "you asked for it, you got it"
seems to apply to C compilers.

The static analyser coverity looks more deeply at the code, but didn't
see this one.

I used another static analyser, cppcheck, to find this bug:

lyx-2.3.2/src/Dimension.h:36]: (style) Same expression on both sides of '&&'.

I recommend cppcheck for all C & C++ development work.

Regards

David Binderman

Reply via email to