Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
C
CLHEP
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
2
Issues
2
List
Boards
Labels
Service Desk
Milestones
Iterations
Jira
Jira
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Code Review
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
CLHEP
CLHEP
Commits
6c2704d2
Commit
6c2704d2
authored
Jun 18, 2015
by
Lynn Garren
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
better fix for unused variable in Random/Randomize.h
parent
911571e3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
16 deletions
+9
-16
ChangeLog
ChangeLog
+5
-1
Random/Random/Randomize.h
Random/Random/Randomize.h
+4
-15
No files found.
ChangeLog
View file @
6c2704d2
==============================
1
2
.06.15 Release CLHEP-2.2.0.8
1
8
.06.15 Release CLHEP-2.2.0.8
==============================
2015-06-18 Lynn Garren <garren@fnal.gov>
* Random/Random/Randomize.h: use __attribute__((unused)) for gcc
2015-06-12 Lynn Garren <garren@fnal.gov>
* Random/Random/RandGauss.h, Random/src/RandGauss.cc:
...
...
Random/Random/Randomize.h
View file @
6c2704d2
...
...
@@ -59,14 +59,6 @@
#include "CLHEP/Random/RandPoissonT.h"
#include "CLHEP/Random/RandSkewNormal.h"
#include "CLHEP/Random/RandStudentT.h"
#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ > 6)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunused-variable"
#elif __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
namespace
CLHEP
{
#define HepUniformRand() HepRandom::getTheEngine()->flat()
...
...
@@ -74,17 +66,14 @@ namespace CLHEP {
// On some compilers the static instance of the HepRandom generator
// needs to be created explicitly in the client code (i.e. here).
#if __GNUC__
static
const
int
HepRandomGenActive
__attribute__
((
unused
))
=
HepRandom
::
createInstance
();
#else
static
const
int
HepRandomGenActive
=
HepRandom
::
createInstance
();
#endif
}
// namespace CLHEP
#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ > 6)
#pragma GCC diagnostic pop
#elif __clang__
#pragma clang diagnostic pop
#endif
#ifdef ENABLE_BACKWARDS_COMPATIBILITY
// backwards compatibility will be enabled ONLY in CLHEP 1.9
using
namespace
CLHEP
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment