Code indexing in gitaly is broken and leads to code not being visible to the user. We work on the issue with highest priority.

Skip to content
Snippets Groups Projects
Commit edc94273 authored by gsell's avatar gsell
Browse files

Merge branch '386-compiler-warnings-due-to-memcpy' into 'master'

Resolve "compiler warnings due to memcpy"

Closes #386

See merge request !199
parents 33a9bd19 a7849e5d
No related branches found
No related tags found
1 merge request!199Resolve "compiler warnings due to memcpy"
......@@ -43,7 +43,7 @@ set (CMAKE_CXX_EXTENSIONS OFF)
add_definitions (-DIPPL_LINUX -DIPPL_STRINGSTREAM)
add_definitions (-DIPPL_MPI -DMPICH_SKIP_MPICXX -DIPPL_DONT_POOL)
add_definitions (-DIPPL_USE_XDIV_RNG -DPETE_BITWISE_COPY)
add_definitions (-DIPPL_USE_XDIV_RNG)
add_definitions (-DIPPL_USE_PARTIAL_SPECIALIZATION)
add_definitions (-Drestrict=__restrict__ -DNOCTAssert)
......
......@@ -2,9 +2,6 @@
/***************************************************************************
*
* The IPPL Framework
*
*
* Visit http://people.web.psi.ch/adelmann/ for more details
*
***************************************************************************/
......@@ -310,18 +307,6 @@ struct PETE_TUTree : public PETE_Expr< PETE_TUTree<Value_t, Child_t> >
PETE_TUTree(const Child_t& c)
: Child(c) { }
#if ( defined(PETE_BITWISE_COPY) && !defined(IPPL_INSURE) )
// For efficiency, make the copy constructor bitwise. USE WITH CARE.
PETE_TUTree(const PETE_TUTree<Value_t,Child_t>& t)
{
memcpy(this, &t, sizeof(*this));
}
#endif
};
......@@ -368,18 +353,6 @@ struct PETE_TBTree :
PETE_TBTree(const Left_t& l, const Right_t& r)
: Left(l), Right(r) { }
#if ( defined(PETE_BITWISE_COPY) && !defined(IPPL_INSURE) )
// For efficiency, make the copy constructor bitwise. USE WITH CARE.
PETE_TBTree(const PETE_TBTree<Value_t, Left_t, Right_t>& t)
{
memcpy(this,&t,sizeof(*this));
}
#endif
};
......@@ -432,17 +405,6 @@ public:
PETE_TTTree(const Left_t& l, const Middle_t& m,const Right_t& r)
: Left(l), Middle(m), Right(r) {}
#if ( defined(PETE_BITWISE_COPY) && !defined(IPPL_INSURE) )
// For efficiency, make the copy constructor bitwise. USE WITH CARE.
PETE_TTTree(const PETE_TTTree<Value_t, Left_t, Middle_t, Right_t>& t)
{
memcpy(this,&t,sizeof(*this));
}
#endif
};
......@@ -1322,8 +1284,3 @@ struct PETEBinaryReturn<ARG1,ARG2,FnBinary_ ## FUNC> { \
#endif // PETE_H
/***************************************************************************
* $RCSfile: PETE.h,v $ $Author: adelmann $
* $Revision: 1.1.1.1 $ $Date: 2003/01/23 07:40:28 $
* IPPL_VERSION_ID: $Id: PETE.h,v 1.1.1.1 2003/01/23 07:40:28 adelmann Exp $
***************************************************************************/
CC -fpermissive -Wno-deprecated -ftemplate-depth-80 -funroll-loops -fstrict-aliasing -g -I/users/adelmann/svnwork/ippl/src/expde -I/users/adelmann/svnwork/ippl/src -I/ufs/packages/hdf5/include -DTTProf -DOLDLAYOUT -DMAPS -DTTRACK -D__cplusplus -I. -I/users/adelmann/svnwork/classic/3.3/src -I/users/adelmann/svnwork/gsl/include -I/users/adelmann/svnwork/gte/GTConst -I/users/adelmann/svnwork/gte/GTUtilities -I./GTElements -I./GTDistribution -I./GTConfigure -I/users/adelmann/svnwork/gte/GTIntegrators -I/users/adelmann/svnwork/gte/GTUtilities -I./GTChargedParticles -I/users/adelmann/svnwork/gte/GTDataSink -I/users/adelmann/svnwork/gte/GTQRSolver -I/users/adelmann/svnwork/ippl/src/hdf5/H5ecloud -DIPPL_NO_STRINGSTREAM -DPETE_BITWISE_COPY -DIPPL_USE_STANDARD_HEADERS -DIPPL_USE_PARTIAL_SPECIALIZATION -DIPPL_STDSTL -DIPPL_LONGLONG -DWITH_BRICK -DnoCOMP_GNUOLD -DIPPL_STRINGSTREAM -Drestrict=__restrict__ -DNOCTAssert -DIPPL_MPI -DMPICH_SKIP_MPICXX -DIPPL_DEBUG -DIPPL_GCC -DIPPL_DONT_POOL -DIPPL_USE_XDIV_RNG -DIPPL_LINUX -DGTHDF5 -DPARALLEL_IO -I. -c ranlib.cc
......@@ -6,7 +6,7 @@ PROJECT (MSLANG VERSION 0.1)
#SET (MSLANG_VERSION_MINOR 1)
SET (IPPL_CXX_FLAGS
"-DIPPL_LINUX -DIPPL_STRINGSTREAM -DIPPL_MPI -DMPICH_SKIP_MPICXX -DIPPL_DONT_POOL -DIPPL_USE_XDIV_RNG -DPETE_BITWISE_COPY -DIPPL_USE_PARTIAL_SPECIALIZATION -Drestrict=__restrict__ -DNOCTAssert ${IPPL_CXX_FLAGS}"
"-DIPPL_LINUX -DIPPL_STRINGSTREAM -DIPPL_MPI -DMPICH_SKIP_MPICXX -DIPPL_DONT_POOL -DIPPL_USE_XDIV_RNG -DIPPL_USE_PARTIAL_SPECIALIZATION -Drestrict=__restrict__ -DNOCTAssert ${IPPL_CXX_FLAGS}"
)
SET (CMAKE_CXX_FLAGS
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment