Skip to content

Compilers warnings #18

@coin-au-carre

Description

@coin-au-carre

Just to notice some compilers warning when using the -Wall flag with Clang 3.7 :

warning: suggest braces around initialization of subobject [-Wmissing-braces]
CASE("test")
lest.hpp:115:5: note: expanded from macro 'lest_CASE'
proposition, [VA_ARGS](lest::env & $)

and with the -pedantic flag GCC 5.2 tells :

warning: ISO C++11 requires at least one argument for the "..." in a variadic macro
CASE("test")

with the -pedantic flag Clang says lots of warnings of the type :

lest.hpp:172:27: warning: '$' in identifier [-Wdollar-in-identifier-extension]
lest::report( $.os, lest::got_none( lest_LOCATION, #expr ), $.testing ); \

We also get some warnings with Weffc++ flag

Thank you for this work I really enjoy it !

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions