LAMMPS WWW Site - LAMMPS Documentation - LAMMPS Mailing List Archives
[lammps-users] Compilation warning
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lammps-users] Compilation warning


From: "A. M.M" <alaa.murar@...24...>
Date: Mon, 25 Sep 2017 23:04:41 +0300

بسم الله الرحمن الرحيم

Hello,

I compiled LAMMPS using intel compiler and I got a warning says

"
../pair_list.cpp(52): warning #47: incompatible redefinition of macro "_noalias" (declared at line 196 of "../lmptype.h")
  #define _noalias __restrict
             ^
"
the pair_list lines are ( from 193 to 201 ):

"
// declaration to lift aliasing restrictions

#if defined(__INTEL_COMPILER)
#define _noalias restrict     ( this is the line 196 )
#elif defined(__GNUC__)
#define _noalias __restrict
#else
#define _noalias
#endif
"

is there any mistake in this line, like restrict must have a "__" before it ?

Thanks