Commit 293a1ca5 authored by Lynn Garren's avatar Lynn Garren
Browse files

pretend to use r to silence gcc 4.6

parent c8209155
2011-12-12 Lynn Garren <garren@fnal.gov>
* test/pretend.h, test/testBug58950.cc: pretend to use variable
2011-12-09 Mark Fischler <mf@fnal.gov>
* test/testInstanceRestore.cc: use assert so clang does not complain
......
////////////////////////////////////////////////////////////////////////
//
// File: pretend.hh
// Purpose: This is to fake out the gcc -pedantic switch
//
// Author: Walter Brown
//
////////////////////////////////////////////////////////////////////////
#ifndef PRETEND_HH
#define PRETEND_HH
template< class T >
inline
void pretend_to_use( T const & )
{}
#endif // #ifndef PRETEND_HH
......@@ -12,6 +12,7 @@
#include <stdlib.h>
#include "CLHEP/Random/RanecuEngine.h"
#include "CLHEP/Random/Random.h"
#include "pretend.h"
bool printCheck( int & i, double & r, std::ofstream & os )
{
......@@ -200,8 +201,12 @@ int main() {
unsigned long mask = (~0) << 31;
unsigned long skipcount = 0;
output << "low = " << low << " mask = " << mask << std::endl;
do {r = g->flat(); pseeds = g->getTheSeeds(); ++skipcount;}
while((pseeds[0]&mask) || (pseeds[1]&mask));
do {
r = g->flat();
pretend_to_use( r );
pseeds = g->getTheSeeds();
++skipcount;
} while((pseeds[0]&mask) || (pseeds[1]&mask));
if ( skipcount > 1 ) ++badcount;
output << std::endl << "Loop terminates on two short seeds." << std::endl;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment