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

csim: Fix C23 compatability warning #483

Merged
merged 1 commit into from
May 23, 2024

Conversation

Alasdair
Copy link
Collaborator

The plat_get_16_random_bits was missing its unit argument, which produces the following warning when using clang:

generated_definitions/c/riscv_model_RV64.c:28041:34: warning: passing arguments to 'plat_get_16_random_bits' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
  zseed = plat_get_16_random_bits(UNIT);

This commit adds the appropriate argument to the function in the C simulator.

The plat_get_16_random_bits was missing its unit argument, which
produces the following warning:

```
generated_definitions/c/riscv_model_RV64.c:28041:34: warning: passing arguments to 'plat_get_16_random_bits' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
  zseed = plat_get_16_random_bits(UNIT);
```

This commit adds the appropriate argument to the function in the C simulator
Copy link

Test Results

712 tests  ±0   712 ✅ ±0   0s ⏱️ ±0s
  6 suites ±0     0 💤 ±0 
  1 files   ±0     0 ❌ ±0 

Results for commit d1a2d83. ± Comparison against base commit c2b5fb7.

Copy link
Collaborator

@billmcspadden-riscv billmcspadden-riscv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@billmcspadden-riscv billmcspadden-riscv merged commit baf157d into riscv:master May 23, 2024
2 checks passed
billmcspadden-riscv pushed a commit that referenced this pull request May 24, 2024
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.

3 participants