Changeset b8b64c34 for tests/io


Ignore:
Timestamp:
Feb 27, 2025, 3:17:20 PM (7 months ago)
Author:
Andrew Beach <ajbeach@…>
Branches:
master
Children:
3483185
Parents:
9506c70
Message:

That should be the rest of the warnings generated from the tests themselves. There are a few that will probably need updates to the compiler to remove those warnings and a few more that should be clean except for a known error.

Location:
tests/io
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • tests/io/comp_basic.cfa

    r9506c70 rb8b64c34  
    7575// takes its sweet time so the Reader has to block
    7676thread Writer {};
    77 void main(Writer & this) {
     77void main(Writer &) {
    7878        for(TIMES) {
    7979                block( globals.bar );
  • tests/io/comp_fair.cfa

    r9506c70 rb8b64c34  
    9595// takes its sweet time so the Reader has to block
    9696thread Writer {};
    97 void main(Writer & this) {
     97void main(Writer &) {
    9898        for(TIMES) {
    9999                block( globals.bar );
  • tests/io/manipulatorsInput-uchunk.cfa

    r9506c70 rb8b64c34  
    117117    }
    118118
    119 #else 
     119#else
    120120    #define xstr(s) str(s)
    121121    #define str(s) #s
     
    180180
    181181    // not used
    182     static int true_main(const char * path, const char * env[]) { return 0; }
    183 
     182    static int true_main(const char *, const char * []) { return 0; }
     183    __attribute__((unused)) static void check_main(const char *);
     184    __attribute__((unused)) static void print_status(int);
    184185
    185186#endif
  • tests/io/manipulatorsInput.cfa

    r9506c70 rb8b64c34  
    8181                scanf( "%[^\n]\n", s );                                                 printf( "16 %s\n", s );                         // |get this line\n|
    8282                scanf( "%[^%%]%%\n", s );                                               printf( "17 %s\n", s );                         // |@# this line 1)-{}%\n|
    83                 scanf( "%*[^%%]%%\n", s );                                              printf( "18 %s\n", s );                         // |@# this line 1)-{}%\n|
     83                scanf( "%*[^%%]%%\n" );                                                 printf( "18 %s\n", s );                         // |@# this line 1)-{}%\n|
    8484
    8585                scanf( "%*[ \f\n\r\t\v]" );                                             // ignore whitespace                            // ||
     
    9292                scanf( "X%[^Y]Y", s );                                                  printf( "22 %s\n", s );                         // |X           ZC44%Y|
    9393                scanf( "%*[ \f\n\r\t\v]" );                                             // ignore whitespace                            // |\n|
    94                 scanf( "X%*[^Y]Y", s );                                                 printf( "23 %s\n", s );                         // |X           ZC44%Y|
     94                scanf( "X%*[^Y]Y" );                                                    printf( "23 %s\n", s );                         // |X           ZC44%Y|
    9595                scanf( "\n" );                                                                  // must start next line                         // |\n|
    9696
     
    105105                scanf( "X%cY", &ch );                                                   printf( "27 %c\n", ch );                        // |x|
    106106                scanf( "%*[ \f\n\r\t\v]" );                                             // ignore whitespace                            // |\n|
    107                 scanf( "X%*cY", &ch );                                                  printf( "28 %c\n", ch );                        // |x|
     107                scanf( "X%*cY" );                                                               printf( "28 %c\n", ch );                        // |x|
    108108                scanf( "\n" );                                                                  // must start next line                         // |\n|
    109109        }
  • tests/io/many_read.cfa

    r9506c70 rb8b64c34  
    9595#endif
    9696
    97 void main(reader & this) {
     97void main(reader &) {
    9898        for(50) {
    9999                char data[size];
Note: See TracChangeset for help on using the changeset viewer.