Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
CLHEP
CLHEP
Commits
12b1c30c
Commit
12b1c30c
authored
Nov 20, 2014
by
Lynn Garren
Browse files
need to ignore aggressive-loop-optimizations warnings from 32bit gcc 4.9
parent
13157432
Changes
1
Hide whitespace changes
Inline
Side-by-side
Random/src/RanshiEngine.cc
View file @
12b1c30c
...
...
@@ -30,6 +30,7 @@
// getState() for anonymous restores 12/27/04
// M. Fischler - State-saving using only ints, for portability 4/12/05
// L. Garren - use explicit 32bit mask to avoid compiler warnings 6/6/2014
// L. Garren - adding pragma for 32bit gcc 4.9 11/20/2014
//
// =======================================================================
...
...
@@ -41,6 +42,14 @@
#include
<string.h>
// for strcmp
#include
<iostream>
// don't generate warnings about agressive loop optimization
#if defined __GNUC__
#if __GNUC__ > 3 && __GNUC_MINOR__ > 8
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Waggressive-loop-optimizations"
#endif
#endif
namespace
CLHEP
{
namespace
{
...
...
@@ -377,3 +386,9 @@ bool RanshiEngine::getState (const std::vector<unsigned long> & v) {
}
}
// namespace CLHEP
#if defined __GNUC__
#if __GNUC__ > 3 && __GNUC_MINOR__ > 8
#pragma GCC diagnostic pop
#endif
#endif
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment