Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Gaudi
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Gaudi
Gaudi
Commits
935101ee
Commit
935101ee
authored
2 years ago
by
Marco Clemencic
Browse files
Options
Downloads
Plain Diff
Fix gcc12 warnings
See merge request
!1403
parents
8297be8f
de9ab00c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!1403
Fix gcc12 warnings
Pipeline
#4964224
passed
2 years ago
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
GaudiCoreSvc/src/JobOptionsSvc/Analyzer.cpp
+8
-0
8 additions, 0 deletions
GaudiCoreSvc/src/JobOptionsSvc/Analyzer.cpp
GaudiExamples/src/testing/TestingAlgs.cpp
+3
-4
3 additions, 4 deletions
GaudiExamples/src/testing/TestingAlgs.cpp
with
11 additions
and
4 deletions
GaudiCoreSvc/src/JobOptionsSvc/Analyzer.cpp
+
8
−
0
View file @
935101ee
...
...
@@ -117,7 +117,15 @@ static std::unique_ptr<gp::PropertyValue> GetPropertyValue( const gp::Node* node
auto
vvalue
=
GetPropertyValue
(
&
child
.
children
[
1
],
catalog
,
units
);
result
.
emplace
(
kvalue
->
ToString
(),
vvalue
->
ToString
()
);
}
#if __GNUC__ >= 12
# pragma GCC diagnostic push
// hide gcc 12 warning (false positive? see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107138)
# pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
#endif
value
=
std
::
make_unique
<
gp
::
PropertyValue
>
(
std
::
move
(
result
)
);
#if __GNUC__ >= 12
# pragma GCC diagnostic pop
#endif
break
;
}
// ------------------------------------------------------------------------
...
...
This diff is collapsed.
Click to expand it.
GaudiExamples/src/testing/TestingAlgs.cpp
+
3
−
4
View file @
935101ee
...
...
@@ -33,10 +33,9 @@ namespace GaudiTesting {
using
GaudiAlgorithm
::
GaudiAlgorithm
;
~
DestructorCheckAlg
()
override
{
// do not print messages if we are created in genconf
const
std
::
string
cmd
=
System
::
cmdLineArgs
()[
0
];
if
(
cmd
.
find
(
"genconf"
)
!=
std
::
string
::
npos
)
return
;
std
::
cout
<<
"Destructor of "
<<
name
()
<<
std
::
endl
;
if
(
System
::
cmdLineArgs
()[
0
].
find
(
"genconf"
)
==
std
::
string
::
npos
)
{
std
::
cout
<<
"Destructor of "
<<
name
()
<<
std
::
endl
;
}
}
StatusCode
execute
()
override
{
info
()
<<
"Executing "
<<
name
()
<<
endmsg
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment