Input_std.c:206:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
if (fp=input_find("<Definition.of.Atomic.Species")) {
~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Input_std.c:206:9: note: place parentheses around the assignment to silence this warning
if (fp=input_find("<Definition.of.Atomic.Species")) {
^
( )
Input_std.c:206:9: note: use '==' to turn this assignment into an equality comparison
if (fp=input_find("<Definition.of.Atomic.Species")) {
^
==
Inputtools.c:374:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
while ( c=fgets(buf,size,fp) ) {
~^~~~~~~~~~~~~~~~~~~
Inputtools.c:374:12: note: place parentheses around the assignment to silence this warning
while ( c=fgets(buf,size,fp) ) {
^
( )
Inputtools.c:374:12: note: use '==' to turn this assignment into an equality comparison
while ( c=fgets(buf,size,fp) ) {
^
==
openmx_common.c:358:7: warning: expression result unused [-Wunused-value]
*f1++;
^~~~~
openmx_common.c:359:7: warning: expression result unused [-Wunused-value]
*f4++;
^~~~~
openmx_common.c:364:7: warning: expression result unused [-Wunused-value]
*f2++;
^~~~~
openmx_common.c:365:7: warning: expression result unused [-Wunused-value]
*f4++;
^~~~~
openmx_common.c:370:7: warning: expression result unused [-Wunused-value]
*f3++;
^~~~~
openmx_common.c:371:7: warning: expression result unused [-Wunused-value]
*f4++;
^~~~~
Inputtools.c:419:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
openmx_common.c:388:7: warning: expression result unused [-Wunused-value]
while ( c=fgets(buf,size,fp) ) { *f1++;
^~~~~
openmx_common.c:389:7: warning: expression result unused [-Wunused-value]
*f4++;
^~~~~
~^~~~~~~~~~~~~~~~~~~
openmx_common.c:394:7: warning: expression result unused [-Wunused-value]
*f2++;
^~~~~
openmx_common.c:395:7: warningInputtools.c:419:12: note: : place parentheses around the assignment to silence this warningexpression result unused [-Wunused-value]
*f4++; while ( c=fgets(buf,size,fp) ) {
^~~~~ ^
( )
openmx_common.c:400:7: warningInputtools.c: :expression result unused [-Wunused-value]419
: *f3++;12
: ^~~~~
noteInput_std.c: openmx_common.cuse '==' to turn this assignment into an equality comparison:
:533401::117:: warningwarning: : using the result of an assignment as a condition without parentheses [-Wparentheses]expression result unused [-Wunused-value]
*f4++; if (fp=input_find("<MD.TempControl")) {
while ( c=fgets(buf,size,fp) ) { ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
^
==
Input_std.c:533:11: note: place parentheses around the assignment to silence this warning
if (fp=input_find("<MD.TempControl")) {
^
( )
Input_std.c:533:11: note: use '==' to turn this assignment into an equality comparison
if (fp=input_find("<MD.TempControl")) {
^
==
Input_std.c:571:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
if (fp=input_find("<MD.CellPressureControl")) {
~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Input_std.c:571:9: note: place parentheses around the assignment to silence this warning
^~~~~
if (fp=input_find("<MD.CellPressureControl")) {
^
( )
Input_std.c:571:9: note: use '==' to turn this assignment into an equality comparison
if (fp=input_find("<MD.CellPressureControl")) {
^
==
Inputtools.c:466:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
while ( c=fgets(buf,size,fp) ) {
~^~~~~~~~~~~~~~~~~~~
Inputtools.c:466:12: note: place parentheses around the assignment to silence this warning
openmx_common.c:418:5: warning: expression result unused [-Wunused-value]
while ( c=fgets(buf,size,fp) ) {
^
( )
*f1++;
^~~~~
openmx_common.c:419:5: warning: expression result unused [-Wunused-value]
*f2++;
^~~~~
Inputtools.c:466:12: note: use '==' to turn this assignment into an equality comparison
while ( c=fgets(buf,size,fp) ) {
^
==
Input_std.c:750:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
if (fp=input_find("<scf.SO.factor")) {
~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Input_std.c:750:11: note: place parentheses around the assignment to silence this warning
if (fp=input_find("<scf.SO.factor")) {
^
( )
Input_std.c:750:11: note: use '==' to turn this assignment into an equality comparison
if (fp=input_find("<scf.SO.factor")) {
^
==
Input_std.c:798:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
if (fp=input_find("<scf.pcc.opencore")) {
~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Input_std.c:798:9: note: place parentheses around the assignment to silence this warning
if (fp=input_find("<scf.pcc.opencore")) {
^
( )
Input_std.c:798:9: note: use '==' to turn this assignment into an equality comparison
if (fp=input_find("<scf.pcc.opencore")) {
^
==
Input_std.c:1195:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
if (fp=input_find("<Atoms.SpeciesAndCoordinates") ) {
~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Input_std.c:1195:11: note: place parentheses around the assignment to silence this warning
if (fp=input_find("<Atoms.SpeciesAndCoordinates") ) {
^
( )
Input_std.c:1195:11: note: use '==' to turn this assignment into an equality comparison
if (fp=input_find("<Atoms.SpeciesAndCoordinates") ) {
^
==
Input_std.c:1329:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
if (fp=input_find("<Atoms.Unitvectors")) {
~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Input_std.c:1329:11: note: place parentheses around the assignment to silence this warning
if (fp=input_find("<Atoms.Unitvectors")) {
^
( )
Input_std.c:1329:11: note: use '==' to turn this assignment into an equality comparison
if (fp=input_find("<Atoms.Unitvectors")) {
^
==
Input_std.c:1704:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
if (fp=input_find("<DFTD.periodicity")) {
~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Input_std.c:1704:11: note: place parentheses around the assignment to silence this warning
if (fp=input_find("<DFTD.periodicity")) {
^
( )
Input_std.c:1704:11: note: use '==' to turn this assignment into an equality comparison
if (fp=input_find("<DFTD.periodicity")) {
^
==
Input_std.c:1757:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
if (fp=input_find("<MD.Fixed.Cell.Vectors")) {
~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Input_std.c:1757:9: note: place parentheses around the assignment to silence this warning
if (fp=input_find("<MD.Fixed.Cell.Vectors")) {
^
( )
Input_std.c:1757:9: note: use '==' to turn this assignment into an equality comparison
if (fp=input_find("<MD.Fixed.Cell.Vectors")) {
^
==
Input_std.c:1787:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
if (fp=input_find("<MD.Fixed.XYZ")) {
~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
Input_std.c:1787:9: note: place parentheses around the assignment to silence this warning
if (fp=input_find("<MD.Fixed.XYZ")) {
^
( )
Input_std.c:1787:9: note: use '==' to turn this assignment into an equality comparison
if (fp=input_find("<MD.Fixed.XYZ")) {
^
==
Input_std.c:1807:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
if (fp=input_find("<MD.Init.Velocity")) {
~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Input_std.c:1807:9: note: place parentheses around the assignment to silence this warning
if (fp=input_find("<MD.Init.Velocity")) {
^
( )
Input_std.c:1807:9: note: use '==' to turn this assignment into an equality comparison
if (fp=input_find("<MD.Init.Velocity")) {
^
==
Input_std.c:1857:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
if (fp=input_find("<MD.AtomGroup")){
~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
Input_std.c:1857:9: note: place parentheses around the assignment to silence this warning
if (fp=input_find("<MD.AtomGroup")){
^
( )
Input_std.c:1857:9: note: use '==' to turn this assignment into an equality comparison
if (fp=input_find("<MD.AtomGroup")){
^
==
Input_std.c:1908:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
if (fp=input_find("<Hubbard.U.values")) {
~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Input_std.c:1908:11: note: place parentheses around the assignment to silence this warning
if (fp=input_find("<Hubbard.U.values")) {
^
( )
Input_std.c:1908:11: note: use '==' to turn this assignment into an equality comparison
if (fp=input_find("<Hubbard.U.values")) {
^
==
Input_std.c:2025:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
if (fp=input_find("<Band.kpath.UnitCell") ) {
~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Input_std.c:2025:14: note: place parentheses around the assignment to silence this warning
if (fp=input_find("<Band.kpath.UnitCell") ) {
^
( )
Input_std.c:2025:14: note: use '==' to turn this assignment into an equality comparison
if (fp=input_find("<Band.kpath.UnitCell") ) {
^
==
Input_std.c:2082:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
if (fp=input_find("<Band.kpath") ) {
~~^~~~~~~~~~~~~~~~~~~~~~~~~~
Input_std.c:2082:11: note: place parentheses around the assignment to silence this warning
if (fp=input_find("<Band.kpath") ) {
^
( )
Input_std.c:2082:11: note: use '==' to turn this assignment into an equality comparison
if (fp=input_find("<Band.kpath") ) {
^
==
Input_std.c:2223:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
if (fp=input_find("<orderN.FNAN+SNAN")) {
~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Input_std.c:2223:9: note: place parentheses around the assignment to silence this warning
if (fp=input_find("<orderN.FNAN+SNAN")) {
^
( )
Input_std.c:2223:9: note: use '==' to turn this assignment into an equality comparison
if (fp=input_find("<orderN.FNAN+SNAN")) {
^
==
Input_std.c:2336:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
if (fp=input_find("<MO.kpoint")) {
~~^~~~~~~~~~~~~~~~~~~~~~~~~
Input_std.c:2336:9: note: place parentheses around the assignment to silence this warning
if (fp=input_find("<MO.kpoint")) {
^
( )
Input_std.c:2336:9: note: use '==' to turn this assignment into an equality comparison
if (fp=input_find("<MO.kpoint")) {
^
==
Input_std.c:2383:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
if (fp=input_find("<NBO.CenterAtoms")) {
~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Input_std.c:2383:11: note: place parentheses around the assignment to silence this warning
if (fp=input_find("<NBO.CenterAtoms")) {
^
( )
Input_std.c:2383:11: note: use '==' to turn this assignment into an equality comparison
if (fp=input_find("<NBO.CenterAtoms")) {
^
==
Input_std.c:2402:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
if (fp=input_find("<NBO.SmallCell")) {
~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Input_std.c:2402:11: note: place parentheses around the assignment to silence this warning
if (fp=input_find("<NBO.SmallCell")) {
^
( )
Input_std.c:2402:11: note: use '==' to turn this assignment into an equality comparison
if (fp=input_find("<NBO.SmallCell")) {
^
==
Input_std.c:2459:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
if (fp=input_find("<Unfolding.ReferenceVectors")) {
~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Input_std.c:2459:11: note: place parentheses around the assignment to silence this warning
if (fp=input_find("<Unfolding.ReferenceVectors")) {
^
( )
Input_std.c:2459:11: note: use '==' to turn this assignment into an equality comparison
if (fp=input_find("<Unfolding.ReferenceVectors")) {
^
==
Input_std.c:2486:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
if (fp=input_find("<Unfolding.Referenceorigin")) {
~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Input_std.c:2486:11: note: place parentheses around the assignment to silence this warning
if (fp=input_find("<Unfolding.Referenceorigin")) {
^
( )
Input_std.c:2486:11: note: use '==' to turn this assignment into an equality comparison
if (fp=input_find("<Unfolding.Referenceorigin")) {
^
==
Input_std.c:2515:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
if (fp=input_find("<Unfolding.Map")) {
~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Input_std.c:2515:11: note: place parentheses around the assignment to silence this warning
if (fp=input_find("<Unfolding.Map")) {
^
( )
Input_std.c:2515:11: note: use '==' to turn this assignment into an equality comparison
if (fp=input_find("<Unfolding.Map")) {
^
==
Input_std.c:2567:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
if (fp=input_find("<Unfolding.kpoint")) {
~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Input_std.c:2567:11: note: place parentheses around the assignment to silence this warning
if (fp=input_find("<Unfolding.kpoint")) {
^
( )
Input_std.c:2567:11: note: use '==' to turn this assignment into an equality comparison
if (fp=input_find("<Unfolding.kpoint")) {
^
==
Input_std.c:2609:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
if (fp=input_find("<Atoms.Cont.Orbitals")) {
~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Input_std.c:2609:11: note: place parentheses around the assignment to silence this warning
if (fp=input_find("<Atoms.Cont.Orbitals")) {
^
( )
Input_std.c:2609:11: note: use '==' to turn this assignment into an equality comparison
if (fp=input_find("<Atoms.Cont.Orbitals")) {
^
==
Input_std.c:2863:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
if (fp=input_find("<Wannier.Initial.Projectors")) {
~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Input_std.c:2863:11: note: place parentheses around the assignment to silence this warning
if (fp=input_find("<Wannier.Initial.Projectors")) {
^
( )
Input_std.c:2863:11: note: use '==' to turn this assignment into an equality comparison
if (fp=input_find("<Wannier.Initial.Projectors")) {
^
==
Input_std.c:2919:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
if (fp=input_find("<Wannier.Initial.Projectors")) {
~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Input_std.c:2919:11: note: place parentheses around the assignment to silence this warning
if (fp=input_find("<Wannier.Initial.Projectors")) {
^
( )
Input_std.c:2919:11: note: use '==' to turn this assignment into an equality comparison
if (fp=input_find("<Wannier.Initial.Projectors")) {
DFTD3vdW_init.c:33502:3: warning: implicitly declaring library function 'memset' with type 'void *(void *, int, unsigned long)' [-Wimplicit-function-declaration]
memset( maxcn_dftD, -1, sizeof( maxcn_dftD) );
^
DFTD3vdW_init.c:33502:3: note: include the header <string.h> or explicitly provide a declaration for 'memset'
DFTD3vdW_init.c:33502:35: warning: 'memset' call operates on objects of type 'int' while the size is based on a different type 'int *' [-Wsizeof-pointer-memaccess]
memset( maxcn_dftD, -1, sizeof( maxcn_dftD) );
~~~~~~~~~~ ^~~~~~~~~~
DFTD3vdW_init.c:33502:35: note: did you mean to dereference the argument to 'sizeof' (and multiply it by the number of elements)?
memset( maxcn_dftD, -1, sizeof( maxcn_dftD) );
^~~~~~~~~~
DFTD3vdW_init.c:33503:36: warning: 'memset' call operates on objects of type 'double' while the size is based on a different type 'double *' [-Wsizeof-pointer-memaccess]
memset( rcov_dftD, -1.0, sizeof( rcov_dftD) );
~~~~~~~~~ ^~~~~~~~~
DFTD3vdW_init.c:33503:36: note: did you mean to dereference the argument to 'sizeof' (and multiply it by the number of elements)?
memset( rcov_dftD, -1.0, sizeof( rcov_dftD) );
^~~~~~~~~
DFTD3vdW_init.c:33504:36: warning: 'memset' call operates on objects of type 'double' while the size is based on a different type 'double *' [-Wsizeof-pointer-memaccess]
memset( r2r4_dftD, -1.0, sizeof( r2r4_dftD) );
~~~~~~~~~ ^~~~~~~~~
DFTD3vdW_init.c:33504:36: note: did you mean to dereference the argument to 'sizeof' (and multiply it by the number of elements)?
liberi-091216/source/eri.c:133:43: warning: passing 'double *[3]' to parameter of type 'const double **' discards qualifiers in nested pointer types [-Wincompatible-pointer-types-discards-qualifiers]
./liberi-091216/source/eri.h:532:17: note: passing argument to parameter 'da1' here
const double *da1[3],
^
liberi-091216/source/eri.c:133:56: warning: passing 'double *[3]' to parameter of type 'const double **' discards qualifiers in nested pointer types [-Wincompatible-pointer-types-discards-qualifiers]
./liberi-091216/source/eri.h:534:17: note: passing argument to parameter 'da2' here
const double *da2[3],
^
liberi-091216/source/eri.c:228:35: warning: incompatible pointer types passing 'double *' to parameter of type 'double (*)[3][2]' [-Wincompatible-pointer-types]
./liberi-091216/source/eri.h:574:17: note: passing argument to parameter 'dI4' here
double dI4[4][3][2],
^
liberi-091216/source/eri.c:228:50: warning: passing 'double *[3]' to parameter of type 'const double **' discards qualifiers in nested pointer types [-Wincompatible-pointer-types-discards-qualifiers]
./liberi-091216/source/eri.h:577:17: note: passing argument to parameter 'dF1' here
const double *dF1[3], /* (IN) Overlap matrix */
^
liberi-091216/source/eri.c:228:56: warning: passing 'double *[3]' to parameter of type 'const double **' discards qualifiers in nested pointer types [-Wincompatible-pointer-types-discards-qualifiers]