Skip to content
This repository was archived by the owner on Jul 31, 2023. It is now read-only.

Use the same copts as ABSL.#11

Merged
g-easy merged 1 commit intocensus-instrumentation:masterfrom
g-easy:copts
Jan 22, 2018
Merged

Use the same copts as ABSL.#11
g-easy merged 1 commit intocensus-instrumentation:masterfrom
g-easy:copts

Conversation

@g-easy
Copy link
Copy Markdown
Contributor

@g-easy g-easy commented Jan 17, 2018

In particular, -Wno-sign-compare as Google style does not use unsigned
integers.

@g-easy
Copy link
Copy Markdown
Contributor Author

g-easy commented Jan 17, 2018

What do you folks think? The motivation for this change is to silence the "warning: comparison between signed and unsigned integer expressions [-Wsign-compare]"

If we decide to go ahead with this, I need to add copts=... to every target in every BUILD file. This is unfortunate, but it's how ABSL already does it.

Comment thread opencensus/stats/examples/BUILD Outdated
# OpenCensus C++ Stats library: Example usage.
#
# Copyright 2017, OpenCensus Authors
# Copyright 2017, 2018, OpenCensus Authors
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we supposed to be updating these dates? Abseil is not.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like the answer is no.

Copy link
Copy Markdown
Contributor

@isturdy isturdy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm. Inconvenient, but better than wading through the compiler warnings.

Copy link
Copy Markdown
Contributor

@Vizerai Vizerai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

  • Lets make the build have as few warnings as possible.

In particular, -Wno-sign-compare as Google style does not use unsigned
integers.
@g-easy g-easy merged commit f0a2bc6 into census-instrumentation:master Jan 22, 2018
@g-easy g-easy deleted the copts branch January 22, 2018 05:25
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants