Skip to content

Fix Werror specification and fix unused variable. - #2551

Merged
ScottTodd merged 3 commits into
iree-org:mainfrom
ScottTodd:werror-bugfix
Jul 17, 2020
Merged

ScottTodd merged 3 commits into
iree-org:mainfrom
ScottTodd:werror-bugfix

Conversation

@ScottTodd

Copy link
Copy Markdown
Member

Is there an equivalent of --per_file_copt=-external/.*@-Werror that we can use for CMake?

@GMNGeoffrey

Copy link
Copy Markdown
Member

Thanks! I don't know how I missed this. I definitely had it working at some point and then must have accidentally deleted the "@"

@GMNGeoffrey

Copy link
Copy Markdown
Member

Is there an equivalent of --per_file_copt=-external/.*@-Werror that we can use for CMake?

Yeah I think there is: https://stackoverflow.com/q/15133332

@ScottTodd

Copy link
Copy Markdown
Member Author
In file included from external/org_tensorflow/tensorflow/core/platform/logging.h:27:
external/org_tensorflow/tensorflow/core/platform/default/logging.h:392:9: error: 'CHECK_OP_LOG' macro redefined [-Werror,-Wmacro-redefined]
#define CHECK_OP_LOG(name, op, val1, val2)                     \
        ^
./iree/base/internal/logging.h:261:9: note: previous definition is here
#define CHECK_OP_LOG(name, op, val1, val2)                      \
        ^

oh :/

@GMNGeoffrey

Copy link
Copy Markdown
Member
In file included from external/org_tensorflow/tensorflow/core/platform/logging.h:27:
external/org_tensorflow/tensorflow/core/platform/default/logging.h:392:9: error: 'CHECK_OP_LOG' macro redefined [-Werror,-Wmacro-redefined]
#define CHECK_OP_LOG(name, op, val1, val2)                     \
        ^
./iree/base/internal/logging.h:261:9: note: previous definition is here
#define CHECK_OP_LOG(name, op, val1, val2)                      \
        ^

oh :/

ARGH Tensorflow! Set -Wnomacro-redefined with an issue to fix this?

@ScottTodd

Copy link
Copy Markdown
Member Author
In file included from external/org_tensorflow/tensorflow/core/platform/logging.h:27:
external/org_tensorflow/tensorflow/core/platform/default/logging.h:392:9: error: 'CHECK_OP_LOG' macro redefined [-Werror,-Wmacro-redefined]
#define CHECK_OP_LOG(name, op, val1, val2)                     \
        ^
./iree/base/internal/logging.h:261:9: note: previous definition is here
#define CHECK_OP_LOG(name, op, val1, val2)                      \
        ^

oh :/

ARGH Tensorflow! Set -Wnomacro-redefined with an issue to fix this?

Done. Gets further in the build on my machine. We'll see if the CI is also happy.

Comment thread .bazelrc Resolved
@ScottTodd
ScottTodd merged commit e91bf48 into iree-org:main Jul 17, 2020
@ScottTodd
ScottTodd deleted the werror-bugfix branch July 17, 2020 00:22
@ScottTodd ScottTodd mentioned this pull request Jul 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants