[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Help-glpk] Compiler warnings on FreeBSD
From: |
Yuri |
Subject: |
[Help-glpk] Compiler warnings on FreeBSD |
Date: |
Wed, 3 Apr 2019 08:51:09 -0700 |
User-agent: |
Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.6.0 |
clang-6.0.1 prints these warnings on FreeBSD:
In file included from ./amd/amd_internal.h:15:
./env/env.h:32:9: warning: 'SIZE_T_MAX' macro redefined [-Wmacro-redefined]
#define SIZE_T_MAX (~(size_t)0)
^
/usr/include/sys/limits.h:76:9: note: previous definition is here
#define SIZE_T_MAX __SIZE_T_MAX /* max value for a size_t */
^
api/cplex.c:243:49: warning: '&&' within '||' [-Wlogical-op-parentheses]
else if (isalpha(csa->c) || csa->c != '.' && strchr(CHAR_SET,
~~ ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
api/cplex.c:243:49: note: place parentheses around the '&&' expression
to silence this warning
else if (isalpha(csa->c) || csa->c != '.' && strchr(CHAR_SET,
~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
api/gridgen.c:292:24: warning: '&&' within '||' [-Wlogical-op-parentheses]
if (parm[9] == 1 && parm[10] > parm[11] ||
~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ ~~
api/gridgen.c:292:24: note: place parentheses around the '&&' expression
to silence this warning
if (parm[9] == 1 && parm[10] > parm[11] ||
^
( )
api/gridgen.c:293:24: warning: '&&' within '||' [-Wlogical-op-parentheses]
parm[9] == 2 && parm[10] < 1)
~~~~~~~~~~~~~^~~~~~~~~~~~~~~
api/gridgen.c:293:24: note: place parentheses around the '&&' expression
to silence this warning
parm[9] == 2 && parm[10] < 1)
^
( )
api/mps.c:1130:21: warning: '&&' within '||' [-Wlogical-op-parentheses]
csa->deck && strlen(csa->P->row[i]->name) > 8)
~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
api/prob5.c:72:31: warning: '&&' within '||' [-Wlogical-op-parentheses]
if (row->stat == GLP_BS && stat != GLP_BS ||
~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ ~~
api/prob5.c:72:31: note: place parentheses around the '&&' expression to
silence this warning
if (row->stat == GLP_BS && stat != GLP_BS ||
~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
api/prrngs.c:114:46: warning: '&&' within '||' [-Wlogical-op-parentheses]
if (pass == 1 && k > m || pass == 2 && k <= m)
~~ ~~~~~~~~~~^~~~~~~~~
mpl/mpl1.c:4573:24: warning: '&&' within '||' [-Wlogical-op-parentheses]
mpl->flag_d && is_literal(mpl, "end"))
~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
mpl/mpl1.c:4573:24: note: place parentheses around the '&&' expression
to silence this warning
mpl->flag_d && is_literal(mpl, "end"))
^
( )
Yuri
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Help-glpk] Compiler warnings on FreeBSD,
Yuri <=