Changeset 829821c for tests


Ignore:
Timestamp:
Jan 22, 2025, 1:15:59 PM (2 months ago)
Author:
Michael Brooks <mlbrooks@…>
Branches:
master
Children:
1cc5c6a, 857b5f9
Parents:
a9e327a
Message:

Fix test suite to run with no warnings on gcc 12, 13, 14

Location:
tests
Files:
2 edited

Legend:

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

    ra9e327a r829821c  
    2727static char * bookend_hi = 0p;
    2828
     29// bookend pointers are set to stack addresses and compared (but not dereferenced)
     30// after their functions exit; they are "dangling"
     31#pragma GCC diagnostic push
     32#pragma GCC diagnostic ignored "-Wpragmas" // -Wdangling-pointer unrecognized until GCC 12
     33#pragma GCC diagnostic ignored "-Wdangling-pointer"
     34
    2935void bookendInner( void ) {
    3036    char var = 'x';
     
    3541#define TC(...)
    3642#define TR( TRID, SZS, SZV, ETG, ACCS, SPS, OVLD ) \
    37     F_SIG( bookendOuter, TRID, SZS, SZV, ACCS, SPS, OVLD ) {                                  \
     43    F_SIG( bookendOuter, TRID, SZS, SZV, ACCS, SPS, OVLD ) {                         \
    3844        char var = 'x';                                                              \
    3945        (void) var;                                                                  \
    4046        bookend_hi = & var;                                                          \
    41         return CALL( allocAndAccess, TRID, SZS, n, expectedElmSz, tcid, vart );     \
     47        return CALL( allocAndAccess, TRID, SZS, n, expectedElmSz, tcid, vart );      \
    4248    }
    4349#include "boxed.cases.hfa"
    4450#undef TC
    4551#undef TR
     52
     53#pragma GCC diagnostic pop
    4654
    4755void resetBookends( void ) {
  • TabularUnified tests/malloc.cfa

    ra9e327a r829821c  
    6464        free( ip );
    6565
     66  #pragma GCC diagnostic push
     67  #pragma GCC diagnostic ignored "-Wpragmas" // -Walloc-size unrecognized until GCC 14
     68  #pragma GCC diagnostic ignored "-Walloc-size"
    6669        ip = (int *)malloc( 0 );
     70  #pragma GCC diagnostic pop
    6771        test_base( ip, 0, libAlign );
    6872        test_use( ip );
Note: See TracChangeset for help on using the changeset viewer.