fix & suppress warnings of generated code
This commit is contained in:
parent
b2767f7197
commit
efe14610b7
28
src/3rdParty/salomesmesh/src/MEFISTO2/trte.c
vendored
28
src/3rdParty/salomesmesh/src/MEFISTO2/trte.c
vendored
|
@ -819,9 +819,9 @@ integer nosui3_(integer *i__)
|
|||
/* alors il y a une erreur */
|
||||
if (nosoar[*noar * nosoar_dim1 + 4] > 0 && nosoar[*noar * nosoar_dim1
|
||||
+ 5] > 0) {
|
||||
if (nosoar[*noar * nosoar_dim1 + 4] != *nt1 && nosoar[*noar *
|
||||
nosoar_dim1 + 4] != *nt2 || nosoar[*noar * nosoar_dim1 +
|
||||
5] != *nt1 && nosoar[*noar * nosoar_dim1 + 5] != *nt2) {
|
||||
if ((nosoar[*noar * nosoar_dim1 + 4] != *nt1 && nosoar[*noar *
|
||||
nosoar_dim1 + 4] != *nt2) || (nosoar[*noar * nosoar_dim1 +
|
||||
5] != *nt1 && nosoar[*noar * nosoar_dim1 + 5] != *nt2)) {
|
||||
/* arete appartenant a plus de 2 triangles => erreur */
|
||||
if (*ierr >= 0) {
|
||||
// io___14.ciunit = unites_1.imprim;
|
||||
|
@ -2300,8 +2300,8 @@ L15:
|
|||
dmin__ = pxyd[*ns1 * 3 + 1];
|
||||
dmax__ = pxyd[*ns2 * 3 + 1];
|
||||
}
|
||||
if (xrmin <= dmin__ && dmin__ <= xrmax || xrmin <= dmax__ && dmax__ <=
|
||||
xrmax) {
|
||||
if ((xrmin <= dmin__ && dmin__ <= xrmax) || (xrmin <= dmax__ && dmax__ <=
|
||||
xrmax)) {
|
||||
if (pxyd[*ns1 * 3 + 2] > pxyd[*ns3 * 3 + 2]) {
|
||||
dmin__ = pxyd[*ns3 * 3 + 2];
|
||||
dmax__ = pxyd[*ns1 * 3 + 2];
|
||||
|
@ -2309,8 +2309,8 @@ L15:
|
|||
dmin__ = pxyd[*ns1 * 3 + 2];
|
||||
dmax__ = pxyd[*ns3 * 3 + 2];
|
||||
}
|
||||
if (yrmin <= dmin__ && dmin__ <= yrmax || yrmin <= dmax__ &&
|
||||
dmax__ <= yrmax) {
|
||||
if ((yrmin <= dmin__ && dmin__ <= yrmax) || (yrmin <= dmax__ &&
|
||||
dmax__ <= yrmax)) {
|
||||
|
||||
/* nte est un te feuille et interne au rectangle englobant */
|
||||
/* ======================================================= */
|
||||
|
@ -2688,8 +2688,8 @@ L10:
|
|||
dmin__ = pxyd[ns1 * 3 + 1];
|
||||
dmax__ = pxyd[ns2 * 3 + 1];
|
||||
}
|
||||
if (xrmin <= dmin__ && dmin__ <= xrmax || xrmin <= dmax__ && dmax__ <=
|
||||
xrmax) {
|
||||
if ((xrmin <= dmin__ && dmin__ <= xrmax) || (xrmin <= dmax__ && dmax__ <=
|
||||
xrmax)) {
|
||||
if (pxyd[ns1 * 3 + 2] > pxyd[ns3 * 3 + 2]) {
|
||||
dmin__ = pxyd[ns3 * 3 + 2];
|
||||
dmax__ = pxyd[ns1 * 3 + 2];
|
||||
|
@ -2697,8 +2697,8 @@ L10:
|
|||
dmin__ = pxyd[ns1 * 3 + 2];
|
||||
dmax__ = pxyd[ns3 * 3 + 2];
|
||||
}
|
||||
if (yrmin <= dmin__ && dmin__ <= yrmax || yrmin <= dmax__ &&
|
||||
dmax__ <= yrmax) {
|
||||
if ((yrmin <= dmin__ && dmin__ <= yrmax) || (yrmin <= dmax__ &&
|
||||
dmax__ <= yrmax)) {
|
||||
|
||||
/* te minimal et interne au rectangle englobant */
|
||||
/* -------------------------------------------- */
|
||||
|
@ -9057,9 +9057,9 @@ L150:
|
|||
if (nosoar[i__ * nosoar_dim1 + 1] > 0 && nosoar[i__ *
|
||||
nosoar_dim1 + 4] > 0) {
|
||||
/* arete non vide */
|
||||
if (nosoar[i__ * nosoar_dim1 + 2] == ns[k - 1] ||
|
||||
nosoar[i__ * nosoar_dim1 + 1] == ns[k - 1] &&
|
||||
nosoar[i__ * nosoar_dim1 + 2] > 0) {
|
||||
if (nosoar[i__ * nosoar_dim1 + 2] == ns[k - 1] ||
|
||||
(nosoar[i__ * nosoar_dim1 + 1] == ns[k - 1] &&
|
||||
nosoar[i__ * nosoar_dim1 + 2] > 0)) {
|
||||
/* arete active de sommet ns(k) */
|
||||
noarst[ns[k - 1]] = i__;
|
||||
goto L8;
|
||||
|
|
|
@ -1751,7 +1751,15 @@ int ExpressionParserlex(void);
|
|||
|
||||
#ifndef DOXYGEN_SHOULD_SKIP_THIS
|
||||
// Scanner, defined in ExpressionParser.l
|
||||
#if defined(__clang__)
|
||||
# pragma clang diagnostic push
|
||||
# pragma clang diagnostic ignored "-Wsign-compare"
|
||||
# pragma clang diagnostic ignored "-Wunneeded-internal-declaration"
|
||||
#endif
|
||||
#include "lex.ExpressionParser.c"
|
||||
#if defined(__clang__)
|
||||
# pragma clang diagnostic pop
|
||||
#endif
|
||||
#endif // DOXYGEN_SHOULD_SKIP_THIS
|
||||
#ifdef _MSC_VER
|
||||
# define strdup _strdup
|
||||
|
|
|
@ -356,7 +356,15 @@ int QuantityLexer(void);
|
|||
|
||||
#ifndef DOXYGEN_SHOULD_SKIP_THIS
|
||||
// Scanner, defined in QuantityParser.l
|
||||
#if defined(__clang__)
|
||||
# pragma clang diagnostic push
|
||||
# pragma clang diagnostic ignored "-Wsign-compare"
|
||||
# pragma clang diagnostic ignored "-Wunneeded-internal-declaration"
|
||||
#endif
|
||||
#include "QuantityLexer.c"
|
||||
#if defined(__clang__)
|
||||
# pragma clang diagnostic pop
|
||||
#endif
|
||||
#endif // DOXYGEN_SHOULD_SKIP_THIS
|
||||
}
|
||||
|
||||
|
|
|
@ -347,7 +347,15 @@ int SelectionFilterlex(void);
|
|||
|
||||
#ifndef DOXYGEN_SHOULD_SKIP_THIS
|
||||
// Scanner, defined in SelectionFilter.l
|
||||
#if defined(__clang__)
|
||||
# pragma clang diagnostic push
|
||||
# pragma clang diagnostic ignored "-Wsign-compare"
|
||||
# pragma clang diagnostic ignored "-Wunneeded-internal-declaration"
|
||||
#endif
|
||||
#include "lex.SelectionFilter.c"
|
||||
#if defined(__clang__)
|
||||
# pragma clang diagnostic pop
|
||||
#endif
|
||||
#endif // DOXYGEN_SHOULD_SKIP_THIS
|
||||
}
|
||||
|
||||
|
|
|
@ -40,7 +40,11 @@
|
|||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef __GNUC__
|
||||
// class and struct used for SbkObject
|
||||
#if defined(__clang__)
|
||||
# pragma clang diagnostic push
|
||||
# pragma clang diagnostic ignored "-Wmismatched-tags"
|
||||
#elif defined (__GNUC__)
|
||||
# pragma GCC diagnostic push
|
||||
# pragma GCC diagnostic ignored "-Wunused-parameter"
|
||||
#endif
|
||||
|
@ -81,7 +85,9 @@ PyTypeObject** SbkPySide2_QtWidgetsTypes=NULL;
|
|||
# endif
|
||||
#endif
|
||||
|
||||
#ifdef __GNUC__
|
||||
#if defined(__clang__)
|
||||
# pragma clang diagnostic pop
|
||||
#elif defined (__GNUC__)
|
||||
# pragma GCC diagnostic pop
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user