Skip to content

CPP: reference_integration treats warnings as errors #180

@PiotrKorkus

Description

@PiotrKorkus

In reference_integration repository there is a gcc configuration that treats warnings as errors.
Surpressing an error in

/* Ignore Compiler Warning "Wself-move" for GCC and CLANG*/
#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wself-move"
#elif defined(__GNUC__)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wself-move"
#endif
kvs_a = std::move(kvs_a); /* Intentional self-move */
#if defined(__clang__)
#pragma clang diagnostic pop
#elif defined(__GNUC__)
#pragma GCC diagnostic pop
#endif

creates an error in unit test execution in reference_integration repository with:

bazel test @score_persistency//:test_kvs_cpp

We need to repeat tests there to collect combined results and calculate coverages.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions