Repository navigation
ORC-1449: Add -Wno-unused-macros for Clang 14.0 - #1544
Closed
dongjoon-hyun wants to merge 1 commit into
Closed
dongjoon-hyun wants to merge 1 commit into
dongjoon-hyun wants to merge 1 commit into
Conversation
Member
Author
|
cc @williamhyun and @wgtmac |
Member
Author
|
Let me merge this for Apache ORC 1.9.0 preparation. |
dongjoon-hyun
added a commit
that referenced
this pull request
Jun 22, 2023
### What changes were proposed in this pull request?
This PR aims to ignore `unused-macro` warning in Clang 14.0.
### Why are the changes needed?
This is required to test on the latest Mac.
**Environment**
```
$ g++ --version
Apple clang version 14.0.0 (clang-1400.0.28.1)
...
```
**BEFORE**
```
$ make package test-out
...
/Users/dongjoon/APACHE/orc-merge/c++/src/CpuInfoUtil.cc:65:9: error: macro is not used [-Werror,-Wunused-macros]
#define UNUSED(x) (void)(x)
^
1 error generated.
make[2]: *** [c++/src/CMakeFiles/orc.dir/CpuInfoUtil.cc.o] Error 1
make[1]: *** [c++/src/CMakeFiles/orc.dir/all] Error 2
make: *** [all] Error 2
```
**AFTER**
```
make package test-out
...
100% tests passed, 0 tests failed out of 8
Total Test time (real) = 156.15 sec
Built target test-out
```
### How was this patch tested?
Pass the CIs and manual tests on Clang 14.0.
Closes #1544 from dongjoon-hyun/ORC-1449.
Authored-by: Dongjoon Hyun <dongjoon@apache.org>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
(cherry picked from commit d7d2172)
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
cxzl25
pushed a commit
to cxzl25/orc
that referenced
this pull request
Jan 11, 2024
### What changes were proposed in this pull request?
This PR aims to ignore `unused-macro` warning in Clang 14.0.
### Why are the changes needed?
This is required to test on the latest Mac.
**Environment**
```
$ g++ --version
Apple clang version 14.0.0 (clang-1400.0.28.1)
...
```
**BEFORE**
```
$ make package test-out
...
/Users/dongjoon/APACHE/orc-merge/c++/src/CpuInfoUtil.cc:65:9: error: macro is not used [-Werror,-Wunused-macros]
#define UNUSED(x) (void)(x)
^
1 error generated.
make[2]: *** [c++/src/CMakeFiles/orc.dir/CpuInfoUtil.cc.o] Error 1
make[1]: *** [c++/src/CMakeFiles/orc.dir/all] Error 2
make: *** [all] Error 2
```
**AFTER**
```
make package test-out
...
100% tests passed, 0 tests failed out of 8
Total Test time (real) = 156.15 sec
Built target test-out
```
### How was this patch tested?
Pass the CIs and manual tests on Clang 14.0.
Closes apache#1544 from dongjoon-hyun/ORC-1449.
Authored-by: Dongjoon Hyun <dongjoon@apache.org>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
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.
What changes were proposed in this pull request?
This PR aims to ignore
unused-macrowarning in Clang 14.0.Why are the changes needed?
This is required to test on the latest Mac.
Environment
BEFORE
AFTER
How was this patch tested?
Pass the CIs and manual tests on Clang 14.0.