Skip to content

Commit

Permalink
Win32: Define COROUTINE_DECL to suppress a warning
Browse files Browse the repository at this point in the history
In cont.c:

```
warning C4141: 'noreturn': used more than once
```
  • Loading branch information
nobu committed Jan 3, 2025
1 parent 1adf4b1 commit fb73be1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions coroutine/win32/Context.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
#include <string.h>

#define COROUTINE __declspec(noreturn) void __fastcall
#define COROUTINE_DECL void __fastcall
#define COROUTINE_LIMITED_ADDRESS_SPACE

/* This doesn't include thread information block */
Expand Down
1 change: 1 addition & 0 deletions coroutine/win64/Context.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
#include <string.h>

#define COROUTINE __declspec(noreturn) void
#define COROUTINE_DECL void

enum {
COROUTINE_REGISTERS = 8,
Expand Down

0 comments on commit fb73be1

Please sign in to comment.