Changeset 10b5970 for tests/configs


Ignore:
Timestamp:
Jan 7, 2025, 3:22:19 PM (12 months ago)
Author:
Michael Brooks <mlbrooks@…>
Branches:
master
Children:
190a833
Parents:
70670e7
Message:

Fix many test-suite- and libcfa-caused unused variable warnings.

In scope are easy fixes among tests whose sole warnings were unused variable. Reduces the wflags lax list by 40%.

Location:
tests/configs
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • tests/configs/parsebools.cfa

    r70670e7 r10b5970  
    2222
    2323int main( int argc, char * argv[] ) {
    24         check_main(argv[0]);
     24        if ( argc == 0 ) abort( "Test requires a command-line argument" );
     25        check_main( argv[0] );
    2526
    2627        bool YN = false;
  • tests/configs/parsenums.cfa

    r70670e7 r10b5970  
    3535
    3636int main( int argc, char * argv[]) {
    37         check_main( argv[0]);
     37        if ( argc == 0 ) abort( "Test requires a command-line argument" );
     38        check_main( argv[0] );
    3839
    3940        int i = -3;
Note: See TracChangeset for help on using the changeset viewer.