Fix gcc's warning/error when building with -Wmisleading-indentation #104

Closed
wants to merge 1 commit into
from

Projects

None yet

2 participants

@Romain-Geissler-1A
Contributor

Hi,

I am having troubles when including "boost/test/unit_test.hpp" with gcc 6 and -Wall -Werror turned on. gcc (wrongly) complains about misleading indentation in the macro DEFINE_FPV_COMPARISON. This is likely caused by the fact that we have extra indentation after each line so that the backlslashes are properly aligned, and the macro is eventually putting this on a single line. Anyway, an easy fix is to use braces around all block of code.

Ok for the merge ?

(Similar to boostorg/spirit#222)

Cheers,
Romain

@raffienficiaud
Member

Thanks, this is a duplicate of #103 that is already merged to a feature/check branch.

@raffienficiaud
Member

In develop

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment