Compiler warnings on FreeBSD
Yuri <[email protected]>
| Newsgroups | gmane.comp.gnu.glpk |
|---|---|
| Message-ID | <[email protected]> |
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 _______________________________________________ Help-glpk mailing list [email protected] https://lists.gnu.org/mailman/listinfo/help-glpk