boostorg / leaf

Lightweight Error Augmentation Framework
Boost Software License 1.0
312 stars 48 forks source link

Fix gcc syntax warnings enabled with -Wall and -Wpedantic #45

Closed dnmiller closed 2 years ago

dnmiller commented 2 years ago

Some minor syntax issues (missing braces and extra semicolons) cause GCC to complain with -Wpedantic enabled. This PR allows compilation with -Wpedantic.

If you can give guidance on how to enable these flags in CI, I'll add them there as well.

zajo commented 2 years ago

I'd rather not add it to the CI, I'm not a big fan of these warnings.

I'll approve your pull request as soon as CI cycles through, thank you!