Skip to content
This repository was archived by the owner on Jun 30, 2025. It is now read-only.

Conversation

@dfreese
Copy link
Contributor

@dfreese dfreese commented Sep 3, 2021

This makes this definition consistent with Abseil's declarations. See:
https://github.com/abseil/abseil-cpp/blob/master/absl/base/dynamic_annotations.h#L213-L215

Having this unsigned seems to match what libsanitizers is expecting:
https://github.com/gcc-mirror/gcc/blob/16e2427f50c208dfe07d07f18009969502c25dc8/libsanitizer/tsan/tsan_interface_ann.cpp#L367-L371

This solves a "conflicting declaration of C function" when using glog
with abseil.

This makes this definition consistent with Abseil's declarations.  See:
https://github.com/abseil/abseil-cpp/blob/master/absl/base/dynamic_annotations.h#L213-L215

Having this unsigned seems to match what libsanitizers is expecting:
https://github.com/gcc-mirror/gcc/blob/16e2427f50c208dfe07d07f18009969502c25dc8/libsanitizer/tsan/tsan_interface_ann.cpp#L367-L371

This solves a "conflicting declaration of C function" when using glog
with abseil.
@sergiud
Copy link
Contributor

sergiud commented Sep 3, 2021

Thanks!

@sergiud sergiud merged commit 9733727 into google:master Sep 3, 2021
@dfreese dfreese deleted the tsan_annotation branch September 3, 2021 17:35
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants