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

avoid memset warning in apps/sel4bench/src/irq.c #22

Open
axel-h opened this issue Feb 14, 2022 · 0 comments
Open

avoid memset warning in apps/sel4bench/src/irq.c #22

axel-h opened this issue Feb 14, 2022 · 0 comments

Comments

@axel-h
Copy link
Member

axel-h commented Feb 14, 2022

Look into the build warning, maybe there is a way to avoid it, if this is a dynamically assigned region:

RISC-V:

 /github/workspace/projects/sel4bench/apps/sel4bench/src/irq.c: In function 'process':
  cc1: warning: '__builtin_memset' writing between 8 and 17179869176 bytes into a region of size 0 overflows the destination [-Wstringop-overflow=]

ARMv8:

/github/workspace/projects/sel4bench/apps/sel4bench/src/irq.c:42:28: warning: ‘__builtin_memset’ writing between 8 and 17179869176 bytes into a region of size 0 overflows the destination [-Wstringop-overflow=]
   42 |         kernel_log_data[i] = kernel_logging_entry_get_data(&irq_results->kernel_log[i]);
      |         ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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

No branches or pull requests

1 participant