Ignore:
Timestamp:
Jan 3, 2025, 5:07:43 PM (3 weeks ago)
Author:
Michael Brooks <mlbrooks@…>
Branches:
master
Children:
8893ad4
Parents:
2a32118
Message:

Remove warnings from remaining array-collections tests.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/array-collections/boxed.main.cfa

    r2a32118 r2e63915  
    366366    SHOW_ACCESS_1D(42)
    367367}
    368 char * allocAndAccess_13 ( size_t expectedElmSz, const char * tcid, const char * vart ) {
     368char * allocAndAccess_13 ( size_t expectedElmSz, const char * tcid, const char * vart ) {
     369    (void) vart;
    369370    printf("------- 13%s (communication, mono-poly direct, by param T[]): char x[42], expecting %zd-byte elems\n", tcid, expectedElmSz);
    370371    char x[ 42 ] INITARR;
     
    373374    return 0p;
    374375}
    375 bigun * allocAndAccess_13( size_t expectedElmSz, const char * tcid, const char * vart ) {
     376bigun * allocAndAccess_13( size_t expectedElmSz, const char * tcid, const char * vart ) {
     377    (void) vart;
    376378    printf("------- 13%s (communication, mono-poly direct, by param T[]): bigun x[42], expecting %zd-byte elems\n", tcid, expectedElmSz);
    377379    bigun x[ 42 ] INITARR;
     
    383385// ---------- 14, comm, MPD, PARR
    384386
    385 forall( T* ) void access_14 ( size_t expectedElmSz, T (*temp)[42] ) { 
     387forall( T* ) void access_14 ( size_t expectedElmSz, T (*temp)[42] ) {
    386388    T * x = *temp;
    387389    SHOW_ACCESS_1D(42)
    388390}
    389 double * allocAndAccess_14 ( size_t expectedElmSz, const char * tcid, const char * vart ) {
     391double * allocAndAccess_14 ( size_t expectedElmSz, const char * tcid, const char * vart ) {
     392    (void) vart;
    390393    printf("------- 13%s (communication, mono-poly direct, by param T(*)[*]): double x[42], expecting %zd-byte elems\n", tcid, expectedElmSz);
    391394    double x[ 42 ] INITARR;
     
    397400// ---------- 15, operators
    398401
    399 forall( T* ) void access_15 ( size_t expectedElmSz, T x[] ) {
     402forall( T* ) void access_15 ( T x[] ) {
    400403    // correctness of x and ?[?] established by earlier tests
    401404    T * x5 = & x[5];
     
    414417
    415418    ptrdiff_t expPos5 = x5 - x;
    416     ptrdiff_t expNeg5 = x - x5;
     419//  ptrdiff_t expNeg5 = x - x5;
    417420
    418421    printf( "?-? +ve off by %zd\n", ((ptrdiff_t) 5) - expPos5 );
     
    421424
    422425forall( T ) T * allocAndAccess_15 ( size_t expectedElmSz, const char * tcid, const char * vart ) {
     426    (void) expectedElmSz;
    423427    printf("------- 15%s (operators): T x[42], expecting T=%s, got sizeof(T)=%zd, expecting %zd-byte elems\n", tcid, vart, sizeof(T), expectedElmSz);
    424428    T x[ 42 ] INITARR;
    425429    // bookends unused
    426     access_15( expectedElmSz, x );
     430    access_15( x );
    427431    return 0p;
    428432}
Note: See TracChangeset for help on using the changeset viewer.