Ignore:
Timestamp:
Dec 20, 2024, 10:52:16 AM (5 weeks ago)
Author:
Andrew Beach <ajbeach@…>
Branches:
master
Children:
b05d79d
Parents:
df91e15
Message:

Solved the requested warning with exceptions. Also went through the exceptions tests and managed to remove about 2/3rds of them from the lax list that now either didn't have any warnings or warnings because of the test itself.

Location:
tests/exceptions/cancel
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • tests/exceptions/cancel/coroutine.cfa

    rdf91e15 rd3cf623  
    99coroutine WillCancel {};
    1010
    11 const char * msg(CoroutineCancelled(WillCancel) * this) {
     11const char * msg(CoroutineCancelled(WillCancel) *) {
    1212        return "CoroutineCancelled(WillCancel)";
    1313}
    1414
    15 void main(WillCancel & wc) {
     15void main(WillCancel &) {
    1616        sout | '1';
    1717        cancel_stack((internal_error){&internal_vt});
     
    1919}
    2020
    21 int main(int argc, char * argv[]) {
     21int main() {
    2222        sout | nlOff;
    2323        WillCancel cancel;
  • tests/exceptions/cancel/thread.cfa

    rdf91e15 rd3cf623  
    99thread WillCancel {};
    1010
    11 const char * msg(ThreadCancelled(WillCancel) * this) {
     11const char * msg(ThreadCancelled(WillCancel) *) {
    1212        return "ThreadCancelled(WillCancel)";
    1313}
     
    5252}
    5353
    54 int main(int argc, char * argv[]) {
     54int main() {
    5555        sout | nlOff;
    5656        explicit();
Note: See TracChangeset for help on using the changeset viewer.