--- Module: matrix.c _ if (np = strchr(buffer, '\n')) matrix.c(120) : Info 720: Boolean test of assignment _ len = strlen(tokens[0]); matrix.c(140) : Info 713: Loss of precision (assignment) (unsigned int to int) _ for (nmatch = 0, i = 0; i < NCMDS; ++i) { matrix.c(141) : Warning 574: Signed-unsigned mix with relational matrix.c(141) : Info 737: Loss of sign in promotion from int to unsigned int _ if (strncmp(tokens[0], commands[i].cmd, len) == 0) { matrix.c(142) : Info 732: Loss of sign (arg. no. 3) (int to unsigned int) _ else if (ntoken < cmd->nargs) matrix.c(151) : Warning 644: cmd (line 131) may not have been initialized _ cmd->f(); matrix.c(154) : Info 746: call to unidentified function not made in the presence of a prototype _ return 0; /* Not reached... */ matrix.c(157) : Warning 527: Unreachable _ ptr->next = matrices; matrix.c(192) : Warning 613: Possible use of null pointer (ptr) in left argument to operator '->' _ ptr->name = name == NULL ? NULL : strdup(name); matrix.c(193) : Warning 613: Possible use of null pointer (ptr) in left argument to operator '->' _ ptr->r = r; matrix.c(194) : Info 734: Loss of precision (assignment) (31 bits to 15 bits) matrix.c(194) : Warning 613: Possible use of null pointer (ptr) in left argument to operator '->' _ ptr->c = c; matrix.c(195) : Info 734: Loss of precision (assignment) (31 bits to 15 bits) matrix.c(195) : Warning 613: Possible use of null pointer (ptr) in left argument to operator '->' _ ptr->d = MALLOC(double, r * c); matrix.c(196) : Info 737: Loss of sign in promotion from int to unsigned int matrix.c(196) : Warning 613: Possible use of null pointer (ptr) in left argument to operator '->' _ mzero(A); matrix.c(281) : Warning 534: Ignoring return value of mzero(struct matrix *) (compare with line 20, file Matrix.h) _ if ((A = findmat2(tokens[1])) && (B = findmat2(tokens[2]))) { matrix.c(290) : Info 720: Boolean test of assignment matrix.c(290) : Info 720: Boolean test of assignment _ if ((C = getmat(tokens[3], B->r, B->c))) matrix.c(292) : Info 720: Boolean test of assignment _ smult(A, B, C); matrix.c(293) : Warning 534: Ignoring return value of smult(struct matrix *, struct matrix *, struct matrix *) (compare with line 21, file Matrix.h) _ if ((C = getmat(tokens[3], A->r, A->c))) matrix.c(295) : Info 720: Boolean test of assignment _ smult(B, A, C); matrix.c(296) : Warning 534: Ignoring return value of smult(struct matrix *, struct matrix *, struct matrix *) (compare with line 21, file Matrix.h) _ different(A, C) && different(B, C)) matrix.c(299) : Info 720: Boolean test of assignment _ mmult(A, B, C); matrix.c(300) : Warning 534: Ignoring return value of mmult(struct matrix *, struct matrix *, struct matrix *) (compare with line 15, file Matrix.h) _ mprint(C); matrix.c(302) : Warning 534: Ignoring return value of mprint(struct matrix *) (compare with line 16, file Matrix.h) _ if ((M = findmat2(tokens[i]))) matrix.c(311) : Info 720: Boolean test of assignment _ mprint(M); matrix.c(312) : Warning 534: Ignoring return value of mprint(struct matrix *) (compare with line 16, file Matrix.h) _ if ((A = findmat2(tokens[i]))) matrix.c(321) : Info 720: Boolean test of assignment _ delmat(A); matrix.c(322) : Warning 534: Ignoring return value of delmat(struct matrix *) (compare with line 11, file Matrix.h) _ if ((M = findmat2(tokens[1]))) { matrix.c(331) : Info 720: Boolean test of assignment _ if ((A = findmat2(tokens[1]))) { matrix.c(347) : Info 720: Boolean test of assignment _ if ((A = findmat2(tokens[1])) && (B = getmat(tokens[2], A->r, A->c))) { matrix.c(364) : Info 720: Boolean test of assignment matrix.c(364) : Info 720: Boolean test of assignment _ copymat(A, B); matrix.c(365) : Warning 534: Ignoring return value of copymat(struct matrix *, struct matrix *) (compare with line 10, file Matrix.h) _ if ((A = findmat2(tokens[1])) && issquare(A)) { matrix.c(373) : Info 720: Boolean test of assignment _ if (ntoken <= 2 || (B = getmat(tokens[2], A->c, A->r))) { matrix.c(375) : Info 720: Boolean test of assignment _ minvert(A, B); matrix.c(376) : Warning 534: Ignoring return value of minvert(struct matrix *, struct matrix *) (compare with line 14, file Matrix.h) _ mprint(B); matrix.c(377) : Warning 534: Ignoring return value of mprint(struct matrix *) (compare with line 16, file Matrix.h) _ if ((A = findmat2(tokens[1])) && (B = getmat(tokens[2], A->c, A->r)) && matrix.c(386) : Info 720: Boolean test of assignment matrix.c(386) : Info 720: Boolean test of assignment _ mtranspose(A, B); matrix.c(388) : Warning 534: Ignoring return value of mtranspose(struct matrix *, struct matrix *) (compare with line 19, file Matrix.h) _ mprint(B); matrix.c(389) : Warning 534: Ignoring return value of mprint(struct matrix *) (compare with line 16, file Matrix.h) _ if ((A = findmat2(tokens[1])) && (B = findmat2(tokens[2])) && matrix.c(398) : Info 720: Boolean test of assignment matrix.c(398) : Info 720: Boolean test of assignment _ samesize(A, B) && (C = getmat(tokens[3], A->r, A->c))) { matrix.c(399) : Info 720: Boolean test of assignment _ madd(A, B, C); matrix.c(400) : Warning 534: Ignoring return value of madd(struct matrix *, struct matrix *, struct matrix *) (compare with line 12, file Matrix.h) _ mprint(C); matrix.c(401) : Warning 534: Ignoring return value of mprint(struct matrix *) (compare with line 16, file Matrix.h) _ if ((A = findmat2(tokens[1])) && (B = findmat2(tokens[2])) && matrix.c(410) : Info 720: Boolean test of assignment matrix.c(410) : Info 720: Boolean test of assignment _ samesize(A, B) && (C = getmat(tokens[3], A->r, A->c))) { matrix.c(411) : Info 720: Boolean test of assignment _ msub(A, B, C); matrix.c(412) : Warning 534: Ignoring return value of msub(struct matrix *, struct matrix *, struct matrix *) (compare with line 18, file Matrix.h) _ mprint(C); matrix.c(413) : Warning 534: Ignoring return value of mprint(struct matrix *) (compare with line 16, file Matrix.h) _ if ((A = findmat2(tokens[i]))) matrix.c(423) : Info 720: Boolean test of assignment _ mident(A); matrix.c(424) : Warning 534: Ignoring return value of mident(struct matrix *) (compare with line 13, file Matrix.h) _ if ((A = findmat2(tokens[i]))) matrix.c(434) : Info 720: Boolean test of assignment _ mzero(A); matrix.c(435) : Warning 534: Ignoring return value of mzero(struct matrix *) (compare with line 20, file Matrix.h) _ if ((A = findmat2(tokens[1])) && (B = findmat2(tokens[2])) && matrix.c(447) : Info 720: Boolean test of assignment matrix.c(447) : Info 720: Boolean test of assignment _ samesizevec(A, B) && (C = getmat(tokens[3], 1, 1))) { matrix.c(448) : Info 720: Boolean test of assignment _ mprint(C); matrix.c(453) : Warning 534: Ignoring return value of mprint(struct matrix *) (compare with line 16, file Matrix.h) _ if ((A = findmat2(tokens[1])) && (B = findmat2(tokens[2])) && matrix.c(465) : Info 720: Boolean test of assignment matrix.c(465) : Info 720: Boolean test of assignment _ if ((C = getmat(tokens[3], 1, len))) { matrix.c(470) : Info 720: Boolean test of assignment _ if ((A = findmat2(tokens[1])) && isvec(A) && matrix.c(489) : Info 720: Boolean test of assignment _ (B = getmat(tokens[2], A->r, A->c))) { matrix.c(490) : Info 720: Boolean test of assignment _ if ((A = findmat2(tokens[1])) && issquare(A) && matrix.c(511) : Info 720: Boolean test of assignment _ (B = getmat(tokens[3], 1, 1))) { matrix.c(512) : Info 720: Boolean test of assignment _ if ((A = findmat2(tokens[i++]))) { matrix.c(526) : Info 720: Boolean test of assignment _ mpivot(A, B, row, col); matrix.c(533) : Warning 534: Ignoring return value of mpivot(struct matrix *, struct matrix *, int, int) (compare with line 15) _ mprint(A); matrix.c(534) : Warning 534: Ignoring return value of mprint(struct matrix *) (compare with line 16, file Matrix.h) _ mprint(B); matrix.c(536) : Warning 534: Ignoring return value of mprint(struct matrix *) (compare with line 16, file Matrix.h) _ if ((A = findmat2(tokens[1]))) { matrix.c(546) : Info 720: Boolean test of assignment _ msolve(A, A, B); matrix.c(551) : Warning 534: Ignoring return value of msolve(struct matrix *, struct matrix *, struct matrix *) (compare with line 17, file Matrix.h) _ mprint(A); matrix.c(552) : Warning 534: Ignoring return value of mprint(struct matrix *) (compare with line 16, file Matrix.h) _ mprint(B); matrix.c(554) : Warning 534: Ignoring return value of mprint(struct matrix *) (compare with line 16, file Matrix.h) _ if ((A = getmat(tokens[1], 3, 3))) { matrix.c(564) : Info 720: Boolean test of assignment _ mident(A); matrix.c(566) : Warning 534: Ignoring return value of mident(struct matrix *) (compare with line 13, file Matrix.h) _ mprint(A); matrix.c(569) : Warning 534: Ignoring return value of mprint(struct matrix *) (compare with line 16, file Matrix.h) _ if ((A = getmat(tokens[1], 4, 4))) { matrix.c(578) : Info 720: Boolean test of assignment _ mident(A); matrix.c(579) : Warning 534: Ignoring return value of mident(struct matrix *) (compare with line 13, file Matrix.h) _ mprint(A); matrix.c(583) : Warning 534: Ignoring return value of mprint(struct matrix *) (compare with line 16, file Matrix.h) _ if ((A = getmat(tokens[1], 4, 4))) { matrix.c(592) : Info 720: Boolean test of assignment _ mident(A); matrix.c(593) : Warning 534: Ignoring return value of mident(struct matrix *) (compare with line 13, file Matrix.h) _ mprint(A); matrix.c(597) : Warning 534: Ignoring return value of mprint(struct matrix *) (compare with line 16, file Matrix.h) _ if ((A = getmat(tokens[1], 4, 4))) { matrix.c(606) : Info 720: Boolean test of assignment _ mident(A); matrix.c(607) : Warning 534: Ignoring return value of mident(struct matrix *) (compare with line 13, file Matrix.h) _ mprint(A); matrix.c(611) : Warning 534: Ignoring return value of mprint(struct matrix *) (compare with line 16, file Matrix.h) _ if ((A = getmat(tokens[1], n, n))) { matrix.c(623) : Info 720: Boolean test of assignment _ mzero(A); matrix.c(624) : Warning 534: Ignoring return value of mzero(struct matrix *) (compare with line 20, file Matrix.h) _ mprint(A); matrix.c(628) : Warning 534: Ignoring return value of mprint(struct matrix *) (compare with line 16, file Matrix.h) _ if ((A = getmat(tokens[1], n, n))) { matrix.c(640) : Info 720: Boolean test of assignment _ mident(A); matrix.c(641) : Warning 534: Ignoring return value of mident(struct matrix *) (compare with line 13, file Matrix.h) _ mprint(A); matrix.c(645) : Warning 534: Ignoring return value of mprint(struct matrix *) (compare with line 16, file Matrix.h) _ for (i = 0; i < sizeof(helptxt) / sizeof(helptxt[0]); ++i) { matrix.c(693) : Warning 574: Signed-unsigned mix with relational matrix.c(693) : Info 737: Loss of sign in promotion from int to unsigned int _ getsafe(buffer, sizeof buffer); matrix.c(696) : Warning 534: Ignoring return value of getsafe(char *, int) (compare with line 122) _ for (i = 0; i < sizeof(helptxt) / sizeof(helptxt[0]); ++i) matrix.c(721) : Warning 574: Signed-unsigned mix with relational matrix.c(721) : Info 737: Loss of sign in promotion from int to unsigned int _ { matrix.c(748) : Info 745: function copymat(struct matrix *, struct matrix *) has no explicit type or class, int assumed _ } matrix.c(754) : Warning 533: function copymat(struct matrix *, struct matrix *) should return a value (see line 747) _ { matrix.c(758) : Info 745: function delmat(struct matrix *) has no explicit type or class, int assumed _ } matrix.c(776) : Warning 533: function delmat(struct matrix *) should return a value (see line 757) _ { matrix.c(780) : Info 745: function madd(struct matrix *, struct matrix *, struct matrix *) has no explicit type or class, int assumed _ } matrix.c(787) : Warning 533: function madd(struct matrix *, struct matrix *, struct matrix *) should return a value (see line 779) _ { matrix.c(790) : Info 745: function msub(struct matrix *, struct matrix *, struct matrix *) has no explicit type or class, int assumed _ } matrix.c(797) : Warning 533: function msub(struct matrix *, struct matrix *, struct matrix *) should return a value (see line 789) _ { matrix.c(800) : Info 745: function mzero(struct matrix *) has no explicit type or class, int assumed _ } matrix.c(807) : Warning 533: function mzero(struct matrix *) should return a value (see line 799) _ { matrix.c(810) : Info 745: function mident(struct matrix *) has no explicit type or class, int assumed _ } matrix.c(820) : Warning 533: function mident(struct matrix *) should return a value (see line 809) _ { matrix.c(824) : Info 745: function mmult(struct matrix *, struct matrix *, struct matrix *) has no explicit type or class, int assumed _ } matrix.c(837) : Warning 533: function mmult(struct matrix *, struct matrix *, struct matrix *) should return a value (see line 823) _ { matrix.c(843) : Info 745: function smult(struct matrix *, struct matrix *, struct matrix *) has no explicit type or class, int assumed _ } matrix.c(850) : Warning 533: function smult(struct matrix *, struct matrix *, struct matrix *) should return a value (see line 842) _ { matrix.c(853) : Info 745: function mprint(struct matrix *) has no explicit type or class, int assumed _ } matrix.c(863) : Warning 533: function mprint(struct matrix *) should return a value (see line 852) _ { matrix.c(866) : Info 745: function mtranspose(struct matrix *, struct matrix *) has no explicit type or class, int assumed _ } matrix.c(873) : Warning 533: function mtranspose(struct matrix *, struct matrix *) should return a value (see line 865) _ } matrix.c(881) : Info 715: A (line 877) not referenced _ indices = MALLOC(int, rows); matrix.c(949) : Info 737: Loss of sign in promotion from int to unsigned int _ indices[i] = -1; matrix.c(951) : Warning 613: Possible use of null pointer (indices) in left argument to operator '[' _ if (indices[i] == -1 && fabs(el(atmp, i, col)) > fabs(scale)) { matrix.c(957) : Warning 613: Possible use of null pointer (indices) in left argument to operator '[' _ indices[row] = col; matrix.c(962) : Warning 644: row (line 935) may not have been initialized matrix.c(962) : Warning 613: Possible use of null pointer (indices) in left argument to operator '[' _ i = indices[row]; matrix.c(970) : Warning 613: Possible use of null pointer (indices) in left argument to operator '[' _ for (col = 0; col < B->c; ++col) matrix.c(975) : Warning 613: Possible use of null pointer (B) in left argument to operator '->' matrix.c(975) : Warning 613: Possible use of null pointer (B) in left argument to operator '->' _ el(B, i, col) = el(btmp, row, col); matrix.c(976) : Warning 613: Possible use of null pointer (B) in left argument to operator '->' matrix.c(976) : Warning 613: Possible use of null pointer (B) in left argument to operator '->' _ } matrix.c(977) : Warning 613: Possible use of null pointer (B) in left argument to operator '->' _ } matrix.c(984) : Warning 533: function msolve(struct matrix *, struct matrix *, struct matrix *) should return a value (see line 930) _ { matrix.c(988) : Info 745: function minvert(struct matrix *, struct matrix *) has no explicit type or class, int assumed _ msolve(A, NULL, tmp); matrix.c(997) : Warning 534: Ignoring return value of msolve(struct matrix *, struct matrix *, struct matrix *) (compare with line 965) _ } matrix.c(1002) : Warning 533: function minvert(struct matrix *, struct matrix *) should return a value (see line 987)