Ignore:
Timestamp:
Dec 18, 2024, 6:37:11 PM (10 months ago)
Author:
Michael Brooks <mlbrooks@…>
Branches:
master
Children:
e0f3bd2
Parents:
faf9e19
Message:

Remove unnecessary special case for zero_t in code gen that caused unused-variable warning in thunks.

Add instructions for tidying warnings (with the present zero_t case as its running example) as a "proposal."

The code gen change is safe because a corresponding case for one_t was always "missing" and the the variable at issue is never used meaningfully. (Prior work has size_t lowered as int. While that's a dubious choice, it's beyond what I'm fixing here.)

Mark these tests as now clean of warnings:

array-collections/array-basic
ctrl-flow/loopctrl
vector
vector_math/vec2_int
vector_math/vec2_float
vector_math/vec3_float
vector_math/vec4_float
zero_one

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/array-collections/array-basic.cfa

    rfaf9e19 re0330d2c  
    1212    // numeric subscripts
    1313    ptrdiff_t ix = 1, iy = 2, iz = 3;
    14     array( float, Ny, Nz ) & yz = xyz[ix];
    15     array( float, Nz ) & z = xyz[ix][iy];
    16     float & val = xyz[ix][iy][iz];
     14    array( float, Ny, Nz ) & yz = xyz[ix];      (void) yz;
     15    array( float, Nz ) & z = xyz[ix][iy];       (void) z;
     16    float & val = xyz[ix][iy][iz];              (void) val;
    1717
    1818    // deferral subscript
Note: See TracChangeset for help on using the changeset viewer.