Ignore:
Timestamp:
Jan 13, 2025, 1:32:32 PM (7 days ago)
Author:
Michael Brooks <mlbrooks@…>
Branches:
master
Children:
c086c6e
Parents:
267b543
Message:

Clean some warnings from unused variables and pointer-to-int casts.

Location:
tests/concurrency/actors
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • tests/concurrency/actors/dynamic.cfa

    r267b543 r6a6e205  
    1919void ?{}( derived_msg & this ) { ((derived_msg &)this){ 0 }; }
    2020
    21 allocation receive( derived_actor & receiver, derived_msg & msg ) {
     21allocation receive( derived_actor &, derived_msg & msg ) {
    2222        if ( msg.cnt >= Times ) {
    2323                sout | "Done";
  • tests/concurrency/actors/inherit.cfa

    r267b543 r6a6e205  
    2121}
    2222
    23 allocation receive( Server & receiver, D_msg & msg ) { return handle(); }
    24 allocation receive( Server & receiver, D_msg2 & msg ) { return handle(); }
    25 allocation receive( Server2 & receiver, D_msg & msg ) { return Delete; }
    26 allocation receive( Server2 & receiver, D_msg2 & msg ) { return Delete; }
     23allocation receive( Server &, D_msg & ) { return handle(); }
     24allocation receive( Server &, D_msg2 & ) { return handle(); }
     25allocation receive( Server2 &, D_msg & ) { return Delete; }
     26allocation receive( Server2 &, D_msg2 & ) { return Delete; }
    2727
    2828int main() {
  • tests/concurrency/actors/inline.cfa

    r267b543 r6a6e205  
    5050                d_msg2 dm{ 29079 };
    5151                set_allocation( dm, Nodelete );
    52                 msg_wrapper * mw = &dm;
    53                 message * mg = &dm;
    54                 virtual_dtor * v = &dm;
     52                msg_wrapper * mw = &dm;         (void) mw;
     53                message * mg = &dm;                     (void) mg;
     54                virtual_dtor * v = &dm;         (void) v;
    5555                da | dm;
    5656                actor_stop();                                                           // waits until actors finish
  • tests/concurrency/actors/pingpong.cfa

    r267b543 r6a6e205  
    2020size_t times = 100000;
    2121
    22 allocation receive( ping & receiver, p_msg & msg ) {
     22allocation receive( ping &, p_msg & msg ) {
    2323        msg.count++;
    2424        if ( msg.count > times ) return Finished;
     
    3030}
    3131
    32 allocation receive( pong & receiver, p_msg & msg ) {
     32allocation receive( pong &, p_msg & msg ) {
    3333        msg.count++;
    3434        if ( msg.count > times ) return Finished;
     
    4242size_t Processors = 2;
    4343
    44 int main( int argc, char * argv[] ) {
     44int main() {
    4545        sout | "start";
    4646
  • tests/concurrency/actors/types.cfa

    r267b543 r6a6e205  
    3636};
    3737
    38 allocation receive( derived_actor2 & receiver, d_msg & msg ) {
     38allocation receive( derived_actor2 &, d_msg & msg ) {
    3939        mutex(sout) sout | msg.num;
    4040        return Finished;
     
    4848};
    4949
    50 allocation receive( derived_actor3 & receiver, d_msg & msg ) {
     50allocation receive( derived_actor3 &, d_msg & msg ) {
    5151        mutex(sout) sout | msg.num;
    5252        if ( msg.num == -1 ) return Nodelete;
     
    5454}
    5555
    56 allocation receive( derived_actor3 & receiver, d_msg2 & msg ) {
     56allocation receive( derived_actor3 &, d_msg2 & msg ) {
    5757        mutex(sout) sout | msg.num;
    5858        return Finished;
     
    6161size_t Processors = 3;
    6262
    63 int main( int argc, char * argv[] ) {
     63int main() {
    6464        sout | "start";
    6565
Note: See TracChangeset for help on using the changeset viewer.