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

Fix building with Clang 16 #13121

Merged
merged 1 commit into from
Oct 10, 2022
Merged

Fix building with Clang 16 #13121

merged 1 commit into from
Oct 10, 2022

Conversation

BratishkaErik
Copy link
Contributor

@BratishkaErik BratishkaErik commented Oct 10, 2022

Before:

[ 81%] Built target embedded_softfloat
[ 85%] Built target zigcpp
Consolidate compiler generated dependencies of target opt_c_util
[ 85%] Building C object CMakeFiles/opt_c_util.dir/src/stage1/parse_f128.c.o
/home/bratishkaerik/zig-upstream/src/stage1/parse_f128.c:986:36: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
static inline float128_t makeInf128() {
                                   ^
                                    void
/home/bratishkaerik/zig-upstream/src/stage1/parse_f128.c:993:36: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
static inline float128_t makeNaN128() {
                                   ^
                                    void
2 errors generated.
gmake[2]: *** [CMakeFiles/opt_c_util.dir/build.make:76: CMakeFiles/opt_c_util.dir/src/stage1/parse_f128.c.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:147: CMakeFiles/opt_c_util.dir/all] Error 2
gmake: *** [Makefile:136: all] Error 2

Related:
https://archives.gentoo.org/gentoo-dev/message/dd9f2d3082b8b6f8dfbccb0639e6e240

@andrewrk andrewrk merged commit 02fff6f into ziglang:master Oct 10, 2022
@BratishkaErik BratishkaErik deleted the fix-clang-16 branch October 10, 2022 06:43
BratishkaErik added a commit to BratishkaErik/gentoo that referenced this pull request Oct 10, 2022
Upstream PR ziglang/zig#13121
Signed-off-by: Eric Joldasov <bratishkaerik@getgoogleoff.me>
BratishkaErik added a commit to BratishkaErik/gentoo that referenced this pull request Oct 16, 2022
Upstream PR ziglang/zig#13121
Closes: https://bugs.gentoo.org/877231
Signed-off-by: Eric Joldasov <bratishkaerik@getgoogleoff.me>
gentoo-bot pushed a commit to gentoo/gentoo that referenced this pull request Oct 18, 2022
Upstream PR ziglang/zig#13121

Closes: https://bugs.gentoo.org/877231
Signed-off-by: Eric Joldasov <bratishkaerik@getgoogleoff.me>
Closes: #27718
Signed-off-by: Michał Górny <mgorny@gentoo.org>
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.

2 participants