mirror of
https://git.gfz-potsdam.de/naaice/iphreeqc.git
synced 2025-12-16 08:38:23 +01:00
Removed warning messages from compiler
casts, bool conversion, others git-svn-id: svn://136.177.114.72/svn_GW/phreeqcpp/trunk@1009 1feff8c3-07ed-0310-ac33-dd36852eb9cd
This commit is contained in:
parent
309d3d7bee
commit
cb46a1debf
@ -1,14 +1,14 @@
|
||||
#if !defined(NAMEDOUBLE_H_INCLUDED)
|
||||
#define NAMEDOUBLE_H_INCLUDED
|
||||
|
||||
#define EXTERNAL extern
|
||||
//#define EXTERNAL extern
|
||||
#include <cassert> // assert
|
||||
#include <map> // std::map
|
||||
#include <string> // std::string
|
||||
#include <list> // std::list
|
||||
#include <vector> // std::vector
|
||||
|
||||
#include "global.h"
|
||||
//#include "global.h"
|
||||
#include "char_star.h"
|
||||
#include "Parser.h"
|
||||
class cxxNameDouble : public std::map <char *, double, CHARSTAR_LESS>
|
||||
|
||||
@ -301,7 +301,7 @@ void cxxPPassemblageComp::mpi_unpack(int *ints, int *ii, double *doubles, int *d
|
||||
this->moles = doubles[d++];
|
||||
this->delta = doubles[d++];
|
||||
this->initial_moles = doubles[d++];
|
||||
this->dissolve_only = (bool) ints[i++];
|
||||
this->dissolve_only = (ints[i++] != 0);
|
||||
*ii = i;
|
||||
*dd = d;
|
||||
}
|
||||
|
||||
@ -467,7 +467,7 @@ void cxxSSassemblageSS::mpi_unpack(int *ints, int *ii, double *doubles, int *dd)
|
||||
this->a1 = doubles[d++];
|
||||
this->ag0 = doubles[d++];
|
||||
this->ag1 = doubles[d++];
|
||||
this->miscibility = (bool) ints[i++];
|
||||
this->miscibility = (ints[i++] != 0);
|
||||
this->xb1 = doubles[d++];
|
||||
this->xb2 = doubles[d++];
|
||||
*ii = i;
|
||||
|
||||
@ -6,8 +6,8 @@
|
||||
#include "NameDouble.h"
|
||||
#include "cxxMix.h"
|
||||
|
||||
#define EXTERNAL extern
|
||||
#include "global.h"
|
||||
//#define EXTERNAL extern
|
||||
//#include "global.h"
|
||||
#include <cassert> // assert
|
||||
#include <map> // std::map
|
||||
#include <string> // std::string
|
||||
|
||||
@ -1,15 +1,16 @@
|
||||
#if !defined(SOLUTIONISOTOPELIST_H_INCLUDED)
|
||||
#define SOLUTIONISOTOPELIST_H_INCLUDED
|
||||
|
||||
#define EXTERNAL extern
|
||||
//#define EXTERNAL extern
|
||||
#include "SolutionIsotope.h"
|
||||
#include "global.h"
|
||||
//#include "global.h"
|
||||
#include <cassert> // assert
|
||||
#include <string> // std::string
|
||||
#include <list> // std::list
|
||||
|
||||
#include "char_star.h"
|
||||
#include "Parser.h"
|
||||
|
||||
class cxxSolutionIsotopeList : public std::list <cxxSolutionIsotope>
|
||||
{
|
||||
|
||||
|
||||
@ -414,10 +414,10 @@ void cxxSurface::mpi_unpack(int *ints, int *ii, double *doubles, int *dd)
|
||||
sc.mpi_unpack(ints, &i, doubles, &d);
|
||||
this->surfaceCharges.push_back(sc);
|
||||
}
|
||||
this->diffuse_layer = (bool) ints[i++];
|
||||
this->edl = (bool) ints[i++];
|
||||
this->only_counter_ions = (bool) ints[i++];
|
||||
this->donnan = (bool) ints[i++];
|
||||
this->diffuse_layer = (ints[i++] != 0);
|
||||
this->edl = (ints[i++] != 0);
|
||||
this->only_counter_ions = (ints[i++] != 0);
|
||||
this->donnan = (ints[i++] != 0);
|
||||
this->thickness = doubles[d++];
|
||||
*ii = i;
|
||||
*dd = d;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user