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

Drop useless -Wabi flag #9676

Merged
merged 1 commit into from
Apr 16, 2020
Merged

Conversation

nerzhul
Copy link
Member

@nerzhul nerzhul commented Apr 15, 2020

Recent GCC warn about the abi flag incorrectly used.
Fix the flag for GCC, keep the original behaviour for the others

fixes #9433

To do

This PR is Ready for Review.

How to test

Build with recent gcc, no warning about abi, build with clang, no warning about flag too

@nerzhul nerzhul added @ Build CMake, build scripts, official builds, compiler and linker errors Bugfix 🐛 PRs that fix a bug labels Apr 15, 2020
src/CMakeLists.txt Outdated Show resolved Hide resolved
src/CMakeLists.txt Outdated Show resolved Hide resolved
src/CMakeLists.txt Outdated Show resolved Hide resolved
src/CMakeLists.txt Outdated Show resolved Hide resolved
@nerzhul nerzhul force-pushed the fix/gcc_warning_abi branch 2 times, most recently from c33d0e5 to 21849f3 Compare April 15, 2020 16:57
Copy link
Member

@sfan5 sfan5 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

@nerzhul
Copy link
Member Author

nerzhul commented Apr 16, 2020

good or not good ? what i need to do @sfan5 ?

@sfan5
Copy link
Member

sfan5 commented Apr 16, 2020

My confusion here is whether we need -Wabi at all.
Minetest is not a shared library and does not need to worry about having a stable ABI, all C++ code is linked internally.

@sfan5 sfan5 changed the title Fix GCC warning spam on ABI Drop useless -Wabi flag Apr 16, 2020
@nerzhul nerzhul merged commit 093e79e into minetest:master Apr 16, 2020
@nerzhul nerzhul deleted the fix/gcc_warning_abi branch April 16, 2020 17:21
aldum pushed a commit to banyamesterseg/minetest that referenced this pull request Apr 16, 2020
nerzhul added a commit to nerzhul/minetest that referenced this pull request Apr 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bugfix 🐛 PRs that fix a bug @ Build CMake, build scripts, official builds, compiler and linker errors One approval ✅ ◻️
Projects
None yet
2 participants