Ticket #34452: molmol-warnings.diff
File molmol-warnings.diff, 10.4 KB (added by howarth@…, 13 years ago) |
---|
-
src/calc/CalcRmsd.c
old new 1025 1025 } 1026 1026 1027 1027 for (propI = 0; propI < 2; propI++) { 1028 if (groupNo == 0 || propI == 0 && ! calc1)1028 if (groupNo == 0 || (propI == 0 && ! calc1)) 1029 1029 continue; 1030 1030 1031 if (groupNo == 0 || propI == 1 && ! calc2)1031 if (groupNo == 0 || (propI == 1 && ! calc2)) 1032 1032 continue; 1033 1033 1034 1034 Report("\nAverage RMSD, dev., min. and max of "); … … 1052 1052 Report(" "); 1053 1053 1054 1054 for (groupI2 = 0; groupI2 < groupNo; groupI2++) { 1055 if ( groupI1 < groupI2&&1056 groupInfoP[groupI1].membNo != groupInfoP[groupI2].membNo||1055 if (((groupI1 < groupI2) && 1056 (groupInfoP[groupI1].membNo != groupInfoP[groupI2].membNo)) || 1057 1057 groupInfoP[groupI1].membNo == 0 || 1058 1058 groupInfoP[groupI2].membNo == 0) { 1059 1059 groupInfoP[groupI2].stat.avg = 0.0f; -
src/cmdfig/FigUtil.c
old new 44 44 } TabEntry; 45 45 46 46 static TabEntry GreekTab[] = { 47 "ALPHA", 'a',48 "BETA", 'b',49 "CHI", 'c',50 "DELTA", 'd',51 "EPSILON", 'e',52 "PHI" , 'f',53 "GAMMA", 'g',54 "ETA", 'h',55 "IOTA", 'i',56 "KAPPA", 'k',57 "LAMBDA", 'l',58 "MU", 'm',59 "NU", 'n',60 "PI", 'p',61 "THETA", 'q',62 "RHO", 'r',63 "SIGMA", 's',64 "TAU", 't',65 "UPSILON", 'u',66 "OMEGA", 'w',67 "XI", 'x',68 "PSI", 'y',69 "ZETA", 'z'47 {"ALPHA", 'a'}, 48 {"BETA", 'b'}, 49 {"CHI", 'c'}, 50 {"DELTA", 'd'}, 51 {"EPSILON", 'e'}, 52 {"PHI" , 'f'}, 53 {"GAMMA", 'g'}, 54 {"ETA", 'h'}, 55 {"IOTA", 'i'}, 56 {"KAPPA", 'k'}, 57 {"LAMBDA", 'l'}, 58 {"MU", 'm'}, 59 {"NU", 'n'}, 60 {"PI", 'p'}, 61 {"THETA", 'q'}, 62 {"RHO", 'r'}, 63 {"SIGMA", 's'}, 64 {"TAU", 't'}, 65 {"UPSILON", 'u'}, 66 {"OMEGA", 'w'}, 67 {"XI", 'x'}, 68 {"PSI", 'y'}, 69 {"ZETA", 'z'} 70 70 }; 71 71 72 72 int -
src/cmdio/ExWriteSec.c
old new 250 250 251 251 if (neighLStart != NO_RES) { 252 252 if (num != neighLEnd + 1 || 253 neighNum != neighREnd + 1 && neighNum != neighREnd - 1||254 neighREnd > neighRStart && neighNum != neighREnd + 1||255 neighREnd < neighRStart && neighNum != neighREnd - 1) {253 (neighNum != neighREnd + 1 && neighNum != neighREnd - 1) || 254 (neighREnd > neighRStart && neighNum != neighREnd + 1) || 255 (neighREnd < neighRStart && neighNum != neighREnd - 1)) { 256 256 writeNeigh(neighLStart, neighLEnd, neighRStart, neighREnd); 257 257 neighLStart = NO_RES; 258 258 } else { -
src/data/DataDist.c
old new 116 116 entryP->atom2I = DhAtomGetNumber(atom2P); 117 117 118 118 if (entryP->res1I > entryP->res2I || 119 entryP->res1I == entryP->res2I && entryP->atom1I > entryP->atom2I) {119 (entryP->res1I == entryP->res2I && entryP->atom1I > entryP->atom2I)) { 120 120 t = entryP->res1I; 121 121 entryP->res1I = entryP->res2I; 122 122 entryP->res2I = t; -
src/data/DataHand.c
old new 2043 2043 groupNum1 = getGroupNum(bondAddP->res1P->molP); 2044 2044 groupNum2 = getGroupNum(bondAddP->res2P->molP); 2045 2045 if (atom1P->state == AS_VALID && atom2P->state == AS_VALID && 2046 ( groupNum1 == groupNum && groupNum2 == groupNum||2047 groupNum < 0 && groupNum1 != groupNum2))2046 ((groupNum1 == groupNum && groupNum2 == groupNum) || 2047 (groupNum < 0 && groupNum1 != groupNum2))) 2048 2048 applyF(bondP, atom1P, atom2P, clientData); 2049 2049 } 2050 2050 bondAddP = nextBondAddP; … … 2367 2367 groupNum1 = getGroupNum(distP->res1P->molP); 2368 2368 groupNum2 = getGroupNum(distP->res2P->molP); 2369 2369 if (atom1P->state == AS_VALID && atom2P->state == AS_VALID && 2370 ( groupNum1 == groupNum && groupNum2 == groupNum||2371 groupNum < 0 && groupNum1 != groupNum2))2370 ((groupNum1 == groupNum && groupNum2 == groupNum) || 2371 (groupNum < 0 && groupNum1 != groupNum2))) 2372 2372 applyF(distP, atom1P, atom2P, clientData); 2373 2373 } 2374 2374 } -
src/expr/ExprScan.c
old new 221 221 for (;;) { 222 222 if (isdigit(ch)) { 223 223 DStrAppChar(StrVal, ch); 224 } else if ( ch == '.' && ExprStr[1] != '.'||224 } else if ((ch == '.' && ExprStr[1] != '.') || 225 225 ch == 'e' || ch == 'E') { 226 226 DStrAppChar(StrVal, ch); 227 227 isFloat = TRUE; -
src/motif/MotifDial.c
old new 1323 1323 1324 1324 switch (type) { 1325 1325 case PU_CT_ACTIVATE: 1326 if (gType == GIZMO_TEXT_FIELD || GIZMO_TEXT)1326 if (gType == (GIZMO_TEXT_FIELD | GIZMO_TEXT)) 1327 1327 XtAddCallback(gizmo, XmNactivateCallback, textActivateCB, infoP); 1328 1328 else if (gType == GIZMO_BUTTON) 1329 1329 XtAddCallback(gizmo, XmNactivateCallback, gizmoGenCB, infoP); -
src/motif/MotifMainW.c
old new 80 80 { 81 81 Window *winP = (Window *) arg; 82 82 83 return eventP->type == ButtonPress && eventP->xbutton.window == *winP||84 eventP->type == Expose && eventP->xexpose.window == *winP;83 return (eventP->type == ButtonPress && eventP->xbutton.window == *winP) || 84 (eventP->type == Expose && eventP->xexpose.window == *winP); 85 85 } 86 86 87 87 static void -
src/os/GFile.c
old new 383 383 { 384 384 if (gf->format == GF_FORMAT_MEMORY) 385 385 return gf->currP == NULL || 386 gf->currP->nextP == NULL && gf->currPos == gf->currP->len;386 (gf->currP->nextP == NULL && gf->currPos == gf->currP->len); 387 387 else 388 388 return feof(gf->fp); 389 389 } -
src/prim/PrimDraw.c
old new 461 461 } 462 462 463 463 if (partP->paint == RP_ATOM || 464 partP->paint == RP_ATOM_SMOOTH && partP->polyNo > 0)464 (partP->paint == RP_ATOM_SMOOTH && partP->polyNo > 0)) 465 465 SgSetColor(attrP->colR, attrP->colG, attrP->colB); 466 466 467 467 if (partP->paint == RP_ATOM_SMOOTH) -
src/prim/RibbonCalc.c
old new 907 907 getSplinePoints(partP, ribbonP, ePar, partP->endPar, ePNo + 1, 908 908 parA + sPNo + mPNo - 1, xA + sPNo + mPNo - 1, dzA + sPNo + mPNo - 1); 909 909 910 if ( partP->style == RS_ROUND && partP->midRad == 0.0f||910 if ((partP->style == RS_ROUND && partP->midRad == 0.0f) || 911 911 BreakInterrupted()) { 912 912 /* draw only one line */ 913 913 partP->traceNo = 1; … … 1128 1128 Vec3Copy(partP->traceA[traceI].nvA[pointI], nv); 1129 1129 } 1130 1130 1131 if ( pointI == 0 && partP->startStyle == RE_SHARP||1132 pointI == pointNo - ePNo && partP->endStyle == RE_ARROW)1131 if ((pointI == 0 && partP->startStyle == RE_SHARP) || 1132 (pointI == pointNo - ePNo && partP->endStyle == RE_ARROW)) 1133 1133 Vec3Copy(partP->polyA[polyI].xA[traceNo - 1 - traceI], x); 1134 1134 else if (pointI == pointNo - 1 && partP->endStyle == RE_SHARP) 1135 1135 Vec3Copy(partP->polyA[polyI].xA[traceI], x); 1136 1136 } 1137 1137 1138 if ( pointI == 0 && partP->startStyle == RE_SHARP||1139 pointI == pointNo - ePNo && partP->endStyle == RE_ARROW) {1138 if ((pointI == 0 && partP->startStyle == RE_SHARP) || 1139 (pointI == pointNo - ePNo && partP->endStyle == RE_ARROW)) { 1140 1140 Vec3Copy(x, dy); 1141 1141 Vec3Cross(x, dx); 1142 1142 Vec3Copy(partP->polyA[polyI].nv, x); … … 1327 1327 1328 1328 if (! partP->pointValid || prec != partP->prec || 1329 1329 startRad != partP->startRad || 1330 partP->style == RS_ROUND && midRad != partP->midRad||1330 (partP->style == RS_ROUND && midRad != partP->midRad) || 1331 1331 endRad != partP->endRad || radChanged) { 1332 1332 for (i = 0; i < partP->traceNo; i++) { 1333 1333 free(partP->traceA[i].xA); -
src/pudev/PuMainW.c
old new 57 57 if (text[0] != LOCK_CHAR) 58 58 return; 59 59 text++; 60 if (text[0] == '\0' || text[0] == ' ' && text[1] == '\0') {60 if (text[0] == '\0' || (text[0] == ' ' && text[1] == '\0')) { 61 61 StatusLocked = FALSE; 62 62 text = " "; 63 63 } -
src/tty/TTY.c
old new 164 164 void 165 165 PuTTYSetTextField(PuTextFieldChoice fieldChoice, char *text) 166 166 { 167 if (text[0] == '\0' || text[0] == ' ' && text[1] == '\0')167 if (text[0] == '\0' || (text[0] == ' ' && text[1] == '\0')) 168 168 return; 169 169 170 170 switch (fieldChoice) { -
tools/src/IsoSurface.c
old new 104 104 } Strip; 105 105 106 106 static CubeDesc CubeEven = { 107 0, 3, 5, 6, {{D_0, 1}, {D_0, 2}, {D_0, 3}, {D_0, 4}},108 3, 0, 5, 1, {{D_0, 0}, {D_MZ, 4}, {D_MY, 1}, {D_PX, 2}},109 0, 3, 6, 2, {{D_0, 0}, {D_MZ, 3}, {D_PY, 2}, {D_MX, 1}},110 3, 5, 6, 7, {{D_0, 0}, {D_PX, 3}, {D_PZ, 1}, {D_PY, 4}},111 5, 0, 6, 4, {{D_0, 0}, {D_MY, 3}, {D_MX, 4}, {D_PZ, 2}}107 {{0, 3, 5, 6, {{D_0, 1}, {D_0, 2}, {D_0, 3}, {D_0, 4}}}, 108 {3, 0, 5, 1, {{D_0, 0}, {D_MZ, 4}, {D_MY, 1}, {D_PX, 2}}}, 109 {0, 3, 6, 2, {{D_0, 0}, {D_MZ, 3}, {D_PY, 2}, {D_MX, 1}}}, 110 {3, 5, 6, 7, {{D_0, 0}, {D_PX, 3}, {D_PZ, 1}, {D_PY, 4}}}, 111 {5, 0, 6, 4, {{D_0, 0}, {D_MY, 3}, {D_MX, 4}, {D_PZ, 2}}}} 112 112 }; 113 113 114 114 static CubeDesc CubeOdd = { 115 1, 2, 7, 4, {{D_0, 1}, {D_0, 2}, {D_0, 3}, {D_0, 4}},116 2, 1, 7, 3, {{D_0, 0}, {D_MZ, 3}, {D_PX, 2}, {D_PY, 1}},117 1, 2, 4, 0, {{D_0, 0}, {D_MZ, 4}, {D_MX, 1}, {D_MY, 2}},118 2, 7, 4, 6, {{D_0, 0}, {D_PY, 4}, {D_PZ, 2}, {D_MX, 3}},119 7, 1, 4, 5, {{D_0, 0}, {D_PX, 4}, {D_MY, 3}, {D_PZ, 1}}115 {{1, 2, 7, 4, {{D_0, 1}, {D_0, 2}, {D_0, 3}, {D_0, 4}}}, 116 {2, 1, 7, 3, {{D_0, 0}, {D_MZ, 3}, {D_PX, 2}, {D_PY, 1}}}, 117 {1, 2, 4, 0, {{D_0, 0}, {D_MZ, 4}, {D_MX, 1}, {D_MY, 2}}}, 118 {2, 7, 4, 6, {{D_0, 0}, {D_PY, 4}, {D_PZ, 2}, {D_MX, 3}}}, 119 {7, 1, 4, 5, {{D_0, 0}, {D_PX, 4}, {D_MY, 3}, {D_PZ, 1}}}} 120 120 }; 121 121 122 122 static BOOL Initialized = FALSE; … … 158 158 static BOOL 159 159 equalPair(int i00, int i01, int i10, int i11) 160 160 { 161 return i00 == i10 && i01 == i11 || i00 == i11 && i01 == i10;161 return (i00 == i10 && i01 == i11) || (i00 == i11 && i01 == i10); 162 162 } 163 163 164 164 static int