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

Clang fixes #212

Merged
merged 2 commits into from
Dec 13, 2021
Merged

Clang fixes #212

merged 2 commits into from
Dec 13, 2021

Conversation

graeme-a-stewart
Copy link
Member

@graeme-a-stewart graeme-a-stewart commented Dec 13, 2021

Fix a few issues found with clang compilation:

  • unused variables
  • extra braces in uniform initalisers

Also prevent clang for optimising malloc() when running the memory usage test, as this messes with the VMEM figures and causes the tests to fail.

With this patch the clang build and all tests (inc. Gtests) compile and run successfully.

Closes #210

graeme-a-stewart and others added 2 commits December 13, 2021 20:01
Tidy up a few unused variables spotted by clang
Correct the uniform initialiser for testing

Add the -fno-builtin flag when using clang
for tests to ensure that the VMEM values are not
optimised out of bounds for the test setup
@graeme-a-stewart graeme-a-stewart added bug Something isn't working tests Issues to do with tests labels Dec 13, 2021
@amete amete merged commit 5b7522f into main Dec 13, 2021
@amete amete deleted the clang-fixes branch December 13, 2021 20:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working tests Issues to do with tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

prmon v3.0.0 compilation problem with clang10/13
2 participants