riscv / sail-riscv

Sail RISC-V model
https://lists.riscv.org/g/tech-golden-model
Other
407 stars 148 forks source link

csim: Fix C23 compatability warning #483

Closed Alasdair closed 1 month ago

Alasdair commented 1 month ago

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.

github-actions[bot] commented 1 month ago

Test Results

712 tests  ±0   712 :white_check_mark: ±0   0s :stopwatch: ±0s   6 suites ±0     0 :zzz: ±0    1 files   ±0     0 :x: ±0 

Results for commit d1a2d83e. ± Comparison against base commit c2b5fb72.