Skip to content

Fixed build for clang16 and lto#30

Open
Schievel1 wants to merge 1 commit intoScrollZ:masterfrom
Schievel1:patch-clang16-lto
Open

Fixed build for clang16 and lto#30
Schievel1 wants to merge 1 commit intoScrollZ:masterfrom
Schievel1:patch-clang16-lto

Conversation

@Schievel1
Copy link
Copy Markdown

@Schievel1 Schievel1 commented Nov 15, 2022

Clang16 will not allow implicit int, implicit function declaration etc. by default.
This overhauls the whole source code to work with clang16 default.

Also fixes some -Werror=lto-type-mismatch

I also used modern C function definitions everywhere.

See also:
https://bugs.gentoo.org/870907
https://bugs.gentoo.org/861467

Signed-off-by: Pascal Jäger pascal.jaeger@leimstift.de

@Schievel1 Schievel1 marked this pull request as draft November 15, 2022 16:26
@johnsonjh
Copy link
Copy Markdown
Contributor

Nice job - I'll review this a bit more later and see if I have any feedback, but, at first glance, I see there are a few .orig and .rej files that crept in. Can you remove those?

@Schievel1
Copy link
Copy Markdown
Author

Yes I noticed, that’s why I reverted it to being a draft again. I will remove them, don’t worry.

Please review thoroughly, I have tested this and I can run scrollz, I also connected to a server and wrote messages. But I haven’t tested every single function.

Also take your time, release of clang16 is 2024 I think

@johnsonjh
Copy link
Copy Markdown
Contributor

johnsonjh commented Nov 15, 2022 via email

@Schievel1
Copy link
Copy Markdown
Author

Oh and I also wrote a mail to flier@scrollz.info because I did not know there is a repo on github. So, please ignore the mail...

Clang16 will not allow implicit int, implicit function declaration etc. by default.
This overhauls the whole source code to work with clang16 default.

Also fixes some -Werror=lto-type-mismatch

I also used modern C function definitions everywhere.

See also:
https://bugs.gentoo.org/870907
https://bugs.gentoo.org/861467

Signed-off-by: Pascal Jäger <pascal.jaeger@leimstift.de>
@Schievel1 Schievel1 marked this pull request as ready for review November 22, 2022 07:17
@johnsonjh
Copy link
Copy Markdown
Contributor

Bump (for my TODO list)

@johnsonjh
Copy link
Copy Markdown
Contributor

Re-bumping. :)

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