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

build: Fix -Wformat warnings #119

Merged
merged 3 commits into from
Jan 22, 2024

Conversation

makiftasova
Copy link
Contributor

Some Linux distros uses -Wformat -Werror=format-security flags when
building C/C++ projects by default. This makes harder to build Lampray
on such distros with default build flags.

Without this include statement, both GCC and clang fails building,
giving "incomplete type" errors.
This method can be used instead of doing `static_cast<const char*>`
every time it is needed.
Some Linux distros uses `-Wformat -Werror=format-security` flags when
building C/C++ projects by default. This makes harder to build Lampray
on such distros with default build flags.
@makiftasova makiftasova changed the title Fix -Wformat warnings build: Fix -Wformat warnings Jan 21, 2024
@makiftasova
Copy link
Contributor Author

I had to include changes from #118 to be able test changes locally, then this should be merged after #118 (and may require a rebase)

Also I encountered this issue when I was trying to create a PKGBUILD file for Arch User Repository ( https://aur.archlinux.org/packages/lampray )

@CHollingworth CHollingworth merged commit 44a3068 into CHollingworth:master Jan 22, 2024
2 of 3 checks passed
@makiftasova makiftasova deleted the master-formatfix branch January 24, 2024 18:10
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