-
Notifications
You must be signed in to change notification settings - Fork 13
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
Cleanup clang compiler warnings #63
Open
anjohnson
wants to merge
6
commits into
epics-base:master
Choose a base branch
from
anjohnson:clang-warnings
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
8f76204
Update .ci submodule
anjohnson 7495758
Don't duplicate libs requested in PROD_LIBS
anjohnson d5671b0
Clean up some picky clang-15 warnings
anjohnson 19475e9
Disable deprecated compiler warnings on GCC & Clang
anjohnson c8598ed
Update Appveyor and GHA CI build configurations
anjohnson f239353
Appveyor cleanup and triggering rebuild
anjohnson File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,17 +3,14 @@ | |
|
||
# This is YAML - indentation levels are crucial | ||
|
||
cache: | ||
- C:\Users\appveyor\.tools | ||
|
||
#---------------------------------# | ||
# additional packages # | ||
# build cache # | ||
#---------------------------------# | ||
# The AppVeyor cache allowance is way too small (1GB per account across all | ||
# projects, branches and jobs) to be used for the dependency builds. | ||
|
||
install: | ||
# for the sequencer | ||
- cinst re2c | ||
- cmd: git submodule update --init --recursive | ||
cache: | ||
- C:\Users\appveyor\.tools | ||
|
||
#---------------------------------# | ||
# repository cloning # | ||
|
@@ -23,14 +20,18 @@ init: | |
# Set autocrlf to make batch files work | ||
- git config --global core.autocrlf true | ||
|
||
clone_depth: 50 | ||
clone_depth: 5 | ||
|
||
# Skipping commits affecting only specific files | ||
skip_commits: | ||
files: | ||
- 'documentation/*' | ||
- '**/*.md' | ||
- '.github/**' | ||
#---------------------------------# | ||
# additional packages # | ||
#---------------------------------# | ||
|
||
install: | ||
- cmd: git submodule update --init --recursive | ||
|
||
#---------------------------------# | ||
# build matrix configuration # | ||
#---------------------------------# | ||
|
||
# Build Configurations: dll/static, regular/debug | ||
configuration: | ||
|
@@ -43,20 +44,21 @@ configuration: | |
environment: | ||
# common / default variables for all jobs | ||
SETUP_PATH: .ci-local:.ci | ||
EPICS_TEST_IMPRECISE_TIMING: YES | ||
|
||
matrix: | ||
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019 | ||
- BASE: 3.15 | ||
CMP: vs2019 | ||
BASE: 7.0 | ||
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015 | ||
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019 | ||
- BASE: 7.0 | ||
CMP: gcc | ||
BASE: 7.0 | ||
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017 | ||
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015 | ||
- BASE: 7.0 | ||
CMP: vs2017 | ||
BASE: 7.0 | ||
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019 | ||
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017 | ||
- BASE: 7.0 | ||
CMP: vs2019 | ||
BASE: 3.15 | ||
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019 | ||
|
||
# Platform: processor architecture | ||
platform: | ||
|
@@ -94,10 +96,8 @@ on_finish: | |
#---------------------------------# | ||
|
||
notifications: | ||
|
||
- provider: Email | ||
to: | ||
- [email protected] | ||
on_build_success: false | ||
|
||
- provider: GitHubPullRequest |
Submodule .ci
updated
21 files
+10 −11 | .appveyor.yml | |
+44 −86 | .github/workflows/build-and-test.yml | |
+20 −0 | .gitlab-ci.yml | |
+15 −8 | .travis.yml | |
+85 −14 | README.md | |
+2 −5 | appveyor/.appveyor.yml.example-full | |
+3 −5 | appveyor/.appveyor.yml.example-mini | |
+2 −2 | appveyor/README.md | |
+47 −0 | centos6-eol.repo | |
+89 −14 | cue-test.py | |
+408 −92 | cue.py | |
+1 −1 | defaults.set | |
+4 −3 | github-actions/README.md | |
+67 −22 | github-actions/ci-scripts-build.yml.example-full | |
+2 −1 | github-actions/ci-scripts-build.yml.example-mini | |
+8 −1 | gitlab/.gitlab-ci.yml.example-full | |
+2 −1 | gitlab/README.md | |
+1 −1 | test01.set | |
+7 −4 | travis/.travis.yml.example-full | |
+1 −1 | travis/.travis.yml.example-mini | |
+4 −2 | travis/README.md |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How is this causing a warning?
Anonymous namespaces date to C++98. This is the c++ equivalent of static functions, also effecting special symbols for classes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Strictly speaking symbols in an anonymous namespace were not specified to have internal linkage until c++11, but in practice clang, gcc, and msvc have done so for many years.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right, they're supported but annoyingly warned about:
This PR is about cleaning up compiler warnings, and on macOS with Clang-15 I'm getting several of the above from both gwmain.cpp and qsrv.cpp.
An alternative approach would be to turn off those
c++11-extensions
warnings, preferably in the Base build configuration files. The following local PoC works for me, but it would have to be compiler-specific, maybe even dependent on the GCC & Clang versions: