commit | 2ad12a1e735497b691c86dc98c0d31de97e6ff88 | [log] [tgz] |
---|---|---|
author | Raphael Kubo da Costa <raphael.kubo.da.costa@intel.com> | Wed Feb 06 20:49:53 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Wed Feb 06 20:49:53 2019 |
tree | f91313eddd83f73e8dc5364d41781f5c9be0bc23 | |
parent | 2a23b092c6db30a0b7d0686fa017a8e75b60c73c [diff] |
SequenceBound: Move NO_SANITIZE annotation to fix GCC build GCC seems to be stricter when it comes to the position of function attributes, so move them around so the build works on both GCC and clang. ../../base/compiler_specific.h:158:27: error: attributes are not allowed on a function-definition #define NO_SANITIZE(what) __attribute__((no_sanitize(what))) ^~~~~~~~~~~~~ ../../base/threading/sequence_bound.h:114:33: note: in expansion of macro ‘NO_SANITIZE’ Args&&... args) NO_SANITIZE("cfi-unrelated-cast") ^~~~~~~~~~~ ../../base/compiler_specific.h:158:27: error: attributes are not allowed on a function-definition #define NO_SANITIZE(what) __attribute__((no_sanitize(what))) ^~~~~~~~~~~~~ ../../base/threading/sequence_bound.h:162:37: note: in expansion of macro ‘NO_SANITIZE’ void MoveRecordFrom(From&& other) NO_SANITIZE("cfi-unrelated-cast") { ^~~~~~~~~~~ Bug: 819294 Change-Id: Ic52ea4510ab34dac959e343cac869b32ba7005c5 Reviewed-on: https://chromium-review.googlesource.com/c/1456062 Auto-Submit: Raphael Kubo da Costa <raphael.kubo.da.costa@intel.com> Commit-Queue: Daniel Cheng <dcheng@chromium.org> Reviewed-by: Daniel Cheng <dcheng@chromium.org> Cr-Commit-Position: refs/heads/master@{#629720}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .