Skip to content

Commit 3d6f203

Browse files
committed
[Threading][Win32] Fix a warning.
The `RTL_SRWLOCK_INIT` declaration got reformatted and doesn't exactly match what's in `windows.h`, so we're getting warnings during builds. Fix to match what it says in the system header. rdar://105400572
1 parent cfad960 commit 3d6f203

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

include/swift/Threading/Impl/Win32/Win32Defs.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,7 @@ typedef struct _RTL_CONDITION_VARIABLE *PRTL_CONDITION_VARIABLE;
4747
typedef PRTL_CONDITION_VARIABLE PCONDITION_VARIABLE;
4848

4949
// These have to be #defines, to avoid problems with <windows.h>
50-
#define RTL_SRWLOCK_INIT \
51-
{ 0 }
50+
#define RTL_SRWLOCK_INIT {0}
5251
#define SRWLOCK_INIT RTL_SRWLOCK_INIT
5352
#define FLS_OUT_OF_INDEXES ((DWORD)0xFFFFFFFF)
5453

0 commit comments

Comments
 (0)