Changeset 10b5970 for tests/enum_tests


Ignore:
Timestamp:
Jan 7, 2025, 3:22:19 PM (2 weeks 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/enum_tests
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • tests/enum_tests/inc-dec.cfa

    r70670e7 r10b5970  
    44enum() Number { One, Two, Three };
    55
    6 int main(int argc, char * argv[]) {
     6int main() {
    77        Number a = One;
    88
  • tests/enum_tests/planet.cfa

    r70670e7 r10b5970  
    2828}
    2929
    30 int main( int argc, char * argv[] ) {
     30int main() {
    3131//      if ( argc != 2 ) exit | "Usage: " | argv[0] | "earth-weight"; // terminate program
    3232//      double earthWeight = convert( argv[1] );
  • tests/enum_tests/structEnum.cfa

    r70670e7 r10b5970  
    2626
    2727int main() {
    28      PointEnum vals = second;
    29      PointEnum val2;
     28     PointEnum vals = second;      (void) vals;
     29     PointEnum val2;               (void) val2;
    3030     // The failing line: assignment
    3131     // val2 = vals;
Note: See TracChangeset for help on using the changeset viewer.