commit | 4bf477eafc81a1064f45a40442d5dda73064f43d | [log] [tgz] |
---|---|---|
author | Loo Rong Jie <loorongjie@gmail.com> | Mon Jul 02 00:11:54 2018 -0700 |
committer | Copybara-Service <copybara-piper@google.com> | Mon Jul 02 00:15:53 2018 -0700 |
tree | c4461e00e2a13a58230ec87ec098657e07a60804 | |
parent | e810ae5118f19d118260165608c1e840ccbe3f26 [diff] |
Use const char a[] if sizeof is used to get length `memcmp(msys_display_name, value, sizeof(msys_display_name)` try to get length of `msys_display_name` with `sizeof`, but `msys_display_name` is declared as `const char*` pointer, so `sizeof` will return the size of pointer (8-bytes) instead of actual length of string. Declare string as `const char msys_display_name[]` will fix this. Found by Clang's `-Wsizeof-pointer-memaccess`. /cc @dslomov Closes #5476. PiperOrigin-RevId: 202903566
{Fast, Correct} - Choose two
Build and test software of any size, quickly and reliably.
Speed up your builds and tests: Bazel only rebuilds what is necessary. With advanced local and distributed caching, optimized dependency analysis and parallel execution, you get fast and incremental builds.
One tool, multiple languages: Build and test Java, C++, Android, iOS, Go, and a wide variety of other language platforms. Bazel runs on Windows, macOS, and Linux.
Scalable: Bazel helps you scale your organization, codebase, and continuous integration solution. It handles codebases of any size, in multiple repositories or a huge monorepo.
Extensible to your needs: Easily add support for new languages and platforms with Bazel's familiar extension language. Share and re-use language rules written by the growing Bazel community.
Follow our tutorials:
See CONTRIBUTING.md
Bazel is released in ‘Beta’. See the product roadmap to learn about the path toward a stable 1.0 release.