sml icon indicating copy to clipboard operation
sml copied to clipboard

Clang `-Wextra-semi` warning with `-DBOOST_SML_CFG_DISABLE_MIN_SIZE`

Open b1ackviking opened this issue 3 years ago • 0 comments

Expected Behavior

Example code compiles without any warnings.

Actual Behavior

Undefined behavior sanitizer reports errors for optimized builds with Clang. After applying this workaround, the hello world example produces -Wextra-semi warning with Clang 14+.

Steps to Reproduce the Problem

Compiler explorer

System specs

Compiler: Clang 14, 15, 16.

I was going to contribute a fix, but, unfortunately, it turns out that the master branch fails to pass the steps described in contributing guidelines (make, make test, make check, etc.) 😞.

b1ackviking avatar Sep 20 '22 07:09 b1ackviking