mirror of
https://github.com/stenzek/duckstation.git
synced 2026-02-04 05:04:33 +00:00
[PR #22] [MERGED] cmake: Silence warnings with clang. #1
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/stenzek/duckstation/pull/22
Author: @orbea
Created: 2/12/2020
Status: ✅ Merged
Merged: 2/13/2020
Merged by: @stenzek
Base:
master← Head:clang📝 Commits (1)
0c05ad4cmake: Silence warnings with clang.📊 Changes
2 files changed (+12 additions, -7 deletions)
View changed files
📝
CMakeLists.txt(+4 -7)➕
CMakeModules/CheckCXXFlag.cmake(+8 -0)📄 Description
This adds a
check_cxx_flagfunction toCMakeModules/CheckCXXFlag.cmakedesigned to make it easier to check compiler flags across the build system and implemented for the existing-Wallcheck,-Wno-class-memaccessand-Wno-invalid-offsetof. There may be other places this can be used, but I think this is enough for now.I also removed the existing msg for enabling
-Wallbecause cmake seems adequate to informing the result already.Also note its important to use
-Werrorfor these checks, because the compiler may only emit an warning and not an error if they are not supported.The goal behind this is to silence these numerous compiler warnings with
clang-9.0.1.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.