[chore](build) Fix compilation errors reported by clang-15#13000
Merged
adonis0147 merged 1 commit intoapache:masterfrom Sep 27, 2022
Merged
[chore](build) Fix compilation errors reported by clang-15#13000adonis0147 merged 1 commit intoapache:masterfrom
adonis0147 merged 1 commit intoapache:masterfrom
Conversation
Contributor
|
PR approved by at least one committer and no changes requested. |
Contributor
|
PR approved by anyone and no changes requested. |
13 tasks
adonis0147
added a commit
that referenced
this pull request
Oct 27, 2022
…demand (#13716) There are some issues with the compile flag `-Wno-unused-but-set-variable` for clang. 1. `-Wno-unused-but-set-variable` should be set when building source by clang-15 on Linux. (#13000 #13016) 2. On macOS Monterey, Apple Clang 13 may treat it as a unknown warning option and the compilation process may interrupt. This PR introduces a better way to make this compile flag more portable. 1. Test whether the compiler recognizes this flag. 2. Add this flag if the compiler recognizes it.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Proposed changes
Add a compile flag
-Wno-unused-but-set-variableto buildlibGeo.a.Problem summary
Fix the following error.
Checklist(Required)
Further comments
If this is a relatively large or complex change, kick off the discussion at dev@doris.apache.org by explaining why you chose the solution you did and what alternatives you considered, etc...