• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

google / benchmark / 1483
92%

Build:
DEFAULT BRANCH: master
Ran 21 Mar 2018 07:58PM UTC
Jobs 1
Files 34
Run time 1s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
1483

push

travis-ci

EricWF
Fix #552 - GCC and Clang warn on possibly invalid offsetof usage.

This patch disables the -Winvalid-offsetof warning for GCC and Clang
when using it to check the cache lines of the State object.

Technically this usage of offsetof is undefined behavior until C++17.
However, all major compilers support this application as an extension,
as demonstrated by the passing static assert (If a compiler encounters UB
during evaluation of a constant expression, that UB must be diagnosed).
Unfortunately, Clang and GCC also produce a warning about it.

This patch temporarily suppresses the warning using #pragma's in the
source file (instead of globally suppressing the warning in the build systems).
This way the warning is ignored for both CMake and Bazel builds without
having to modify either build system.

1492 of 1714 relevant lines covered (87.05%)

4704061.41 hits per line

Jobs
ID Job ID Ran Files Coverage
1 1483.1 (COMPILER=g++ C_COMPILER=gcc BUILD_TYPE=Coverage) 21 Mar 2018 07:58PM UTC 0
87.05
Travis Job 1483.1
Source Files on build 1483
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1483
  • e668e2a1 on github
  • Prev Build on master (#1482)
  • Next Build on master (#1489)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc