Skip to content

Commit fb73be1

Browse files
committed
Win32: Define COROUTINE_DECL to suppress a warning
In cont.c: ``` warning C4141: 'noreturn': used more than once ```
1 parent 1adf4b1 commit fb73be1

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

coroutine/win32/Context.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
#include <string.h>
1717

1818
#define COROUTINE __declspec(noreturn) void __fastcall
19+
#define COROUTINE_DECL void __fastcall
1920
#define COROUTINE_LIMITED_ADDRESS_SPACE
2021

2122
/* This doesn't include thread information block */

coroutine/win64/Context.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
#include <string.h>
1717

1818
#define COROUTINE __declspec(noreturn) void
19+
#define COROUTINE_DECL void
1920

2021
enum {
2122
COROUTINE_REGISTERS = 8,

0 commit comments

Comments
 (0)