Skip to content

Commit 185adeb

Browse files
Ignore unknown pragmas on apple (#912)
These two pragmas are unknown in XCode. While xcode can normally handle this and treat it as only a warning, systems that build with warnings as errors will fail to build. Add a check to ignore these two pragmas if the platform is Apple (macOS or iOS)
1 parent 96c59da commit 185adeb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Include/httpClient/pal.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#endif
66

77
#pragma once
8-
#if HC_PLATFORM != HC_PLATFORM_ANDROID && HC_PLATFORM != HC_PLATFORM_LINUX
8+
#if HC_PLATFORM != HC_PLATFORM_ANDROID && HC_PLATFORM != HC_PLATFORM_LINUX && !HC_PLATFORM_IS_APPLE
99
#pragma warning(disable: 4062) // enumerator 'identifier' in switch of enum 'enumeration' is not handled
1010
#pragma warning(disable: 4702) // unreachable code
1111
#endif

0 commit comments

Comments
 (0)