<--- FIXED ---> ./src/sys/tests/linter/testValidLogicalCollective.c:8:3: error: Incorrect use of PetscValidLogicalCollectiveInt(), use PetscValidLogicalCollectiveBool() instead [-fincompatible-function]: 6 : 7 : /* incorrect */ > 8 : PetscValidLogicalCollectiveInt(v, d, 2); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 9 : PetscValidLogicalCollectiveEnum(v, e, 3); 10: PetscValidLogicalCollectiveMPIInt(v, f, 4); ./src/sys/tests/linter/testValidLogicalCollective.c:8:37 Note: Due to 'd' of type 'PetscBool' 6 : 7 : /* incorrect */ > 8 : PetscValidLogicalCollectiveInt(v, d, 2); ^ 9 : PetscValidLogicalCollectiveEnum(v, e, 3); 10: PetscValidLogicalCollectiveMPIInt(v, f, 4); ./src/sys/tests/linter/testValidLogicalCollective.c:8:40: error: Argument number doesn't match for 'd'. Expected '4', found '2' [-fmatching-arg-num]: 6 : 7 : /* incorrect */ > 8 : PetscValidLogicalCollectiveInt(v, d, 2); ^ 9 : PetscValidLogicalCollectiveEnum(v, e, 3); 10: PetscValidLogicalCollectiveMPIInt(v, f, 4); ./src/sys/tests/linter/testValidLogicalCollective.c:3:82 Note: 'd' is traceable to argument #4 'd' in enclosing function here: 1: #include 2: > 3: PetscErrorCode testValidLogicalCollective(PetscInt a, PetscMPIInt b, PetscInt c, PetscBool d, PetscScalar e, PetscReal f) ^^^^^^^^^^^ 4: { 5: PetscViewer v; /* dummy variable to satisfy the PetscObject for the following */ ./src/sys/tests/linter/testValidLogicalCollective.c:9:3: error: Incorrect use of PetscValidLogicalCollectiveEnum(), use PetscValidLogicalCollectiveScalar() instead [-fincompatible-function]: 7 : /* incorrect */ 8 : PetscValidLogicalCollectiveInt(v, d, 2); > 9 : PetscValidLogicalCollectiveEnum(v, e, 3); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10: PetscValidLogicalCollectiveMPIInt(v, f, 4); 11: PetscValidLogicalCollectiveScalar(v, a, 5); ./src/sys/tests/linter/testValidLogicalCollective.c:9:38 Note: Due to 'e' of type 'PetscScalar' (a.k.a. 'double') 7 : /* incorrect */ 8 : PetscValidLogicalCollectiveInt(v, d, 2); > 9 : PetscValidLogicalCollectiveEnum(v, e, 3); ^ 10: PetscValidLogicalCollectiveMPIInt(v, f, 4); 11: PetscValidLogicalCollectiveScalar(v, a, 5); ./src/sys/tests/linter/testValidLogicalCollective.c:9:41: error: Argument number doesn't match for 'e'. Expected '5', found '3' [-fmatching-arg-num]: 7 : /* incorrect */ 8 : PetscValidLogicalCollectiveInt(v, d, 2); > 9 : PetscValidLogicalCollectiveEnum(v, e, 3); ^ 10: PetscValidLogicalCollectiveMPIInt(v, f, 4); 11: PetscValidLogicalCollectiveScalar(v, a, 5); ./src/sys/tests/linter/testValidLogicalCollective.c:3:95 Note: 'e' is traceable to argument #5 'e' in enclosing function here: 1: #include 2: > 3: PetscErrorCode testValidLogicalCollective(PetscInt a, PetscMPIInt b, PetscInt c, PetscBool d, PetscScalar e, PetscReal f) ^^^^^^^^^^^^^ 4: { 5: PetscViewer v; /* dummy variable to satisfy the PetscObject for the following */ ./src/sys/tests/linter/testValidLogicalCollective.c:10:3: error: Incorrect use of PetscValidLogicalCollectiveMPIInt(), use PetscValidLogicalCollectiveReal() instead [-fincompatible-function]: 8 : PetscValidLogicalCollectiveInt(v, d, 2); 9 : PetscValidLogicalCollectiveEnum(v, e, 3); > 10: PetscValidLogicalCollectiveMPIInt(v, f, 4); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11: PetscValidLogicalCollectiveScalar(v, a, 5); 12: PetscValidLogicalCollectiveReal(v, b, 6); ./src/sys/tests/linter/testValidLogicalCollective.c:10:40 Note: Due to 'f' of type 'PetscReal' (a.k.a. 'double') 8 : PetscValidLogicalCollectiveInt(v, d, 2); 9 : PetscValidLogicalCollectiveEnum(v, e, 3); > 10: PetscValidLogicalCollectiveMPIInt(v, f, 4); ^ 11: PetscValidLogicalCollectiveScalar(v, a, 5); 12: PetscValidLogicalCollectiveReal(v, b, 6); ./src/sys/tests/linter/testValidLogicalCollective.c:10:43: error: Argument number doesn't match for 'f'. Expected '6', found '4' [-fmatching-arg-num]: 8 : PetscValidLogicalCollectiveInt(v, d, 2); 9 : PetscValidLogicalCollectiveEnum(v, e, 3); > 10: PetscValidLogicalCollectiveMPIInt(v, f, 4); ^ 11: PetscValidLogicalCollectiveScalar(v, a, 5); 12: PetscValidLogicalCollectiveReal(v, b, 6); ./src/sys/tests/linter/testValidLogicalCollective.c:3:110 Note: 'f' is traceable to argument #6 'f' in enclosing function here: 1: #include 2: > 3: PetscErrorCode testValidLogicalCollective(PetscInt a, PetscMPIInt b, PetscInt c, PetscBool d, PetscScalar e, PetscReal f) ^^^^^^^^^^^ 4: { 5: PetscViewer v; /* dummy variable to satisfy the PetscObject for the following */ ./src/sys/tests/linter/testValidLogicalCollective.c:11:3: error: Incorrect use of PetscValidLogicalCollectiveScalar(), use PetscValidLogicalCollectiveInt() instead [-fincompatible-function]: 9 : PetscValidLogicalCollectiveEnum(v, e, 3); 10: PetscValidLogicalCollectiveMPIInt(v, f, 4); > 11: PetscValidLogicalCollectiveScalar(v, a, 5); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12: PetscValidLogicalCollectiveReal(v, b, 6); 13: PetscValidLogicalCollectiveEnum(v, c, 7); ./src/sys/tests/linter/testValidLogicalCollective.c:11:40 Note: Due to 'a' of type 'PetscInt' (a.k.a. 'int') 9 : PetscValidLogicalCollectiveEnum(v, e, 3); 10: PetscValidLogicalCollectiveMPIInt(v, f, 4); > 11: PetscValidLogicalCollectiveScalar(v, a, 5); ^ 12: PetscValidLogicalCollectiveReal(v, b, 6); 13: PetscValidLogicalCollectiveEnum(v, c, 7); ./src/sys/tests/linter/testValidLogicalCollective.c:11:43: error: Argument number doesn't match for 'a'. Expected '1', found '5' [-fmatching-arg-num]: 9 : PetscValidLogicalCollectiveEnum(v, e, 3); 10: PetscValidLogicalCollectiveMPIInt(v, f, 4); > 11: PetscValidLogicalCollectiveScalar(v, a, 5); ^ 12: PetscValidLogicalCollectiveReal(v, b, 6); 13: PetscValidLogicalCollectiveEnum(v, c, 7); ./src/sys/tests/linter/testValidLogicalCollective.c:3:43 Note: 'a' is traceable to argument #1 'a' in enclosing function here: 1: #include 2: > 3: PetscErrorCode testValidLogicalCollective(PetscInt a, PetscMPIInt b, PetscInt c, PetscBool d, PetscScalar e, PetscReal f) ^^^^^^^^^^ 4: { 5: PetscViewer v; /* dummy variable to satisfy the PetscObject for the following */ ./src/sys/tests/linter/testValidLogicalCollective.c:12:3: error: Incorrect use of PetscValidLogicalCollectiveReal(), use PetscValidLogicalCollectiveMPIInt() instead [-fincompatible-function]: 10: PetscValidLogicalCollectiveMPIInt(v, f, 4); 11: PetscValidLogicalCollectiveScalar(v, a, 5); > 12: PetscValidLogicalCollectiveReal(v, b, 6); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13: PetscValidLogicalCollectiveEnum(v, c, 7); 14: ./src/sys/tests/linter/testValidLogicalCollective.c:12:38 Note: Due to 'b' of type 'PetscMPIInt' (a.k.a. 'int') 10: PetscValidLogicalCollectiveMPIInt(v, f, 4); 11: PetscValidLogicalCollectiveScalar(v, a, 5); > 12: PetscValidLogicalCollectiveReal(v, b, 6); ^ 13: PetscValidLogicalCollectiveEnum(v, c, 7); 14: ./src/sys/tests/linter/testValidLogicalCollective.c:12:41: error: Argument number doesn't match for 'b'. Expected '2', found '6' [-fmatching-arg-num]: 10: PetscValidLogicalCollectiveMPIInt(v, f, 4); 11: PetscValidLogicalCollectiveScalar(v, a, 5); > 12: PetscValidLogicalCollectiveReal(v, b, 6); ^ 13: PetscValidLogicalCollectiveEnum(v, c, 7); 14: ./src/sys/tests/linter/testValidLogicalCollective.c:3:55 Note: 'b' is traceable to argument #2 'b' in enclosing function here: 1: #include 2: > 3: PetscErrorCode testValidLogicalCollective(PetscInt a, PetscMPIInt b, PetscInt c, PetscBool d, PetscScalar e, PetscReal f) ^^^^^^^^^^^^^ 4: { 5: PetscViewer v; /* dummy variable to satisfy the PetscObject for the following */ ./src/sys/tests/linter/testValidLogicalCollective.c:13:3: error: Incorrect use of PetscValidLogicalCollectiveEnum(), use PetscValidLogicalCollectiveInt() instead [-fincompatible-function]: 11: PetscValidLogicalCollectiveScalar(v, a, 5); 12: PetscValidLogicalCollectiveReal(v, b, 6); > 13: PetscValidLogicalCollectiveEnum(v, c, 7); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14: 15: /* correct */ ./src/sys/tests/linter/testValidLogicalCollective.c:13:38 Note: Due to 'c' of type 'PetscInt' (a.k.a. 'int') 11: PetscValidLogicalCollectiveScalar(v, a, 5); 12: PetscValidLogicalCollectiveReal(v, b, 6); > 13: PetscValidLogicalCollectiveEnum(v, c, 7); ^ 14: 15: /* correct */ ./src/sys/tests/linter/testValidLogicalCollective.c:13:41: error: Argument number doesn't match for 'c'. Expected '3', found '7' [-fmatching-arg-num]: 11: PetscValidLogicalCollectiveScalar(v, a, 5); 12: PetscValidLogicalCollectiveReal(v, b, 6); > 13: PetscValidLogicalCollectiveEnum(v, c, 7); ^ 14: 15: /* correct */ ./src/sys/tests/linter/testValidLogicalCollective.c:3:70 Note: 'c' is traceable to argument #3 'c' in enclosing function here: 1: #include 2: > 3: PetscErrorCode testValidLogicalCollective(PetscInt a, PetscMPIInt b, PetscInt c, PetscBool d, PetscScalar e, PetscReal f) ^^^^^^^^^^ 4: { 5: PetscViewer v; /* dummy variable to satisfy the PetscObject for the following */ <--- LEFT --->