Changeset 10b5970 for libcfa/src


Ignore:
Timestamp:
Jan 7, 2025, 3:22:19 PM (2 weeks ago)
Author:
Michael Brooks <mlbrooks@…>
Branches:
master
Children:
190a833
Parents:
70670e7
Message:

Fix many test-suite- and libcfa-caused unused variable warnings.

In scope are easy fixes among tests whose sole warnings were unused variable. Reduces the wflags lax list by 40%.

Location:
libcfa/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/bits/queue.hfa

    r70670e7 r10b5970  
    3333                }
    3434
    35                 T * succ( Queue(T) & q, T * n ) with( q ) {             // pre: *n in *q
    36                         #ifdef __CFA_DEBUG__
     35                T * succ( Queue(T) & q, T * n ) {                                       // pre: *n in *q
     36                  #ifdef __CFA_DEBUG__
    3737                        if ( ! listed( n ) ) abort( "(Queue &)%p.succ( %p ) : Node is not on a list.", &q, n );
    38                         #endif // __CFA_DEBUG__
     38                  #else
     39                        (void) q;
     40                  #endif // __CFA_DEBUG__
    3941                        return (Next( n ) == n) ? 0p : Next( n );
    4042                } // post: n == tail() & succ(n) == 0 | n != tail() & *succ(n) in *q
  • libcfa/src/concurrency/mutex_stmt.hfa

    r70670e7 r10b5970  
    3030forall(L & | is_lock(L)) {
    3131    static inline void * __get_mutexstmt_lock_ptr( L & this ) { return &this; }
    32     static inline L __get_mutexstmt_lock_type( L & this ) {}
    33     static inline L __get_mutexstmt_lock_type( L * this ) {}
     32    static inline L __get_mutexstmt_lock_type( L & ) {}
     33    static inline L __get_mutexstmt_lock_type( L * ) {}
    3434}
Note: See TracChangeset for help on using the changeset viewer.