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

all (gcc-compatible) compilers are reported as broken due to -Werror=missing-prototypes #203

Closed
Hello71 opened this issue Nov 28, 2021 · 0 comments

Comments

@Hello71
Copy link
Contributor

Hello71 commented Nov 28, 2021

conftest.c:31:17: error: no previous prototype for 'f' [-Werror=missing-prototypes]
   31 |           char *f(char c) {
      |                 ^
ldv-alt added a commit that referenced this issue Nov 28, 2021
Many tests are intentionally feeding their target syscalls with garbage.
Unfortunately, the compiler stands in the way, issuing tons of
-Warray-bounds and -Wstringop-overread warnings when it is aware
of the amount of memory allocated by tail_alloc and tail_memdup.

* m4/st_broken_cc.m4: Remove.
* configure.ac: Remove st_BROKEN_CC invocation.
* tests/tests.h (tail_alloc, tail_memdup): Remove ATTRIBUTE_ALLOC_SIZE
attribute.

Resolves: #203
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