Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix compiler warnings #37

Merged
merged 11 commits into from
Jul 14, 2022
Merged

Fix compiler warnings #37

merged 11 commits into from
Jul 14, 2022

Conversation

sporksmith
Copy link
Contributor

@sporksmith sporksmith commented Jul 7, 2022

  • In CI, enable all warnings (-Wall) and escalate warnings to errors (-Werror)
  • Fix all the warnings/errors

Probably most-easily reviewed one commit at a time.

I was hoping to validate that the results in the tornettools CI with these changes were exactly the same in shadow/tornettools#85, but afaict the tornettools CI still isn't deterministic. The results look plausible, though.

@sporksmith sporksmith force-pushed the fix-warnings branch 2 times, most recently from 378bf2c to 7be7b07 Compare July 7, 2022 23:44
clang identified a bug here:

```
/__w/tgen/tgen/src/tgen-markovmodel.c:1340:25: error: implicit conversion from 'unsigned long' to 'double' changes value from 18446744073709551615 to 18446744073709551616 [-Werror,-Wimplicit-int-float-conversion]
```

This probably didn't matter significantly in practice, since it'd only
make a difference when the generated value rounds to exactly
UINT64_MAX+1.
@sporksmith sporksmith changed the title Fix warnings Fix compiler warnings Jul 7, 2022
@sporksmith sporksmith marked this pull request as ready for review July 8, 2022 00:28
@sporksmith sporksmith merged commit 4f55d55 into shadow:main Jul 14, 2022
@sporksmith sporksmith deleted the fix-warnings branch July 14, 2022 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants