Skip to content

Commit

Permalink
pythongh-99086: Further -Wstrict-prototypes, -Wimplicit-function-decl…
Browse files Browse the repository at this point in the history
…aration fixes

Followup to 12078e7. I ended up missing
a few, apparently.

Clang 16 makes -Wimplicit-function-declaration an error by default
and warns on -Wstrict-prototypes. It's free to fix -Wstrict-prototypes
while we're here and it futureproofs us, so throw that in.

The only notable part of this which might not be super obvious is
<stddef.h> for size_t.

See: 12078e7
Signed-off-by: Sam James <sam@gentoo.org>
  • Loading branch information
thesamesam committed Nov 12, 2022
1 parent e02cc6d commit 97f6b5c
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 49 deletions.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Fix ``-Wimplicit-int`` compiler warning in :program:`configure` check for ``PTHREAD_SCOPE_SYSTEM``.
Fix ``-Wimplicit-int``, ``-Wstrict-prototypes`, and `-Wimplicit-function-declaration` compiler warnings in :program:`configure` checks.
52 changes: 28 additions & 24 deletions configure

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 97f6b5c

Please sign in to comment.