Skip to content

[pull] master from ninja-build:master#109

Merged
pull[bot] merged 3 commits into
GesuBackups:masterfrom
ninja-build:master
Jun 28, 2025
Merged

[pull] master from ninja-build:master#109
pull[bot] merged 3 commits into
GesuBackups:masterfrom
ninja-build:master

Conversation

@pull

@pull pull Bot commented Jun 28, 2025

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.2)

Can you help keep this open source service alive? 💖 Please sponsor : )

digit-google and others added 3 commits June 26, 2025 15:01
This should fix part of the compiler warnings described in issue #2615.

The first warning is likely a GCC bug as the complete statement can never
trigger the condition the compiler complains about, i.e.:

```
char buf[kMaxRecordSize + 1];
...
if (size > kMaxRecordSize || fread(buf, size, 1, file) < 1) {
  ...
}
```
Also add -DCMAKE_COMPILE_WARNING_AS_ERROR=1 to Cmake release builds.

Note that enabling them for debug builds triggers far too many warnings,
in particular in re2-generated code (e.g. lexer.cc) or in third-party one
(e.g. src/third_party/emhash/hash_table8.hpp).

See issue #2615 for context.

+ Fix a number of compiler warnings, most of them related to
  losing integer precision (e.g. from size_t to int), or ignoring
  function results.
Remove 1.13 warnings and enable -Werror for release builds
@pull pull Bot locked and limited conversation to collaborators Jun 28, 2025
@pull pull Bot added the ⤵️ pull label Jun 28, 2025
@pull pull Bot merged commit 3890808 into GesuBackups:master Jun 28, 2025
12 checks passed
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