Changeset 10b5970 for tests/tuple


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

Legend:

Unmodified
Added
Removed
  • tests/tuple/tupleAssign.cfa

    r70670e7 r10b5970  
    4848                        int z;
    4949                } x;
    50                 X ?=?(X & x, double d) { return x; }
     50                X ?=?(X & x, double) { return x; }
    5151                [int, double, int] t;
    5252
  • tests/tuple/tuplePolymorphism.cfa

    r70670e7 r10b5970  
    6666forall(T)
    6767[T, T] foo([T, T] y) {
     68        (void) y;
    6869        [T, T] x;
    6970        return x;
  • tests/tuple/tupleVariadic.cfa

    r70670e7 r10b5970  
    9898}
    9999
    100 forall(T... | { void foo(T); }) void bar(T x) {}
     100forall(T... | { void foo(T); }) void bar( T ) {}
    101101void foo(int) {}
    102102
     
    126126        {
    127127                // T = [const int] -- this ensures that void(*)(int) satisfies void(*)(const int)
    128                 const int x;
     128                const int x = 42;
    129129                bar(x);
    130130        }
Note: See TracChangeset for help on using the changeset viewer.