Skip to content

Commit

Permalink
fix: [windows] fix warning C4068: unknown pragma 'clang'
Browse files Browse the repository at this point in the history
  • Loading branch information
littleGnAl committed Feb 17, 2023
1 parent 7fdc6e5 commit f26cdba
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
6 changes: 6 additions & 0 deletions ios/Classes/IrisMethodChannelForward.mm
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
// Relative import to be able to reuse the C sources.
// See the comment in ../{projectName}}.podspec for more information.

// Ignore warning of [-Wdocumentation] of dart_api_dl.h
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdocumentation"
#include "../../src/iris_event.cc"
#pragma clang diagnostic pop

#include "../../src/iris_life_cycle_observer.mm"
6 changes: 6 additions & 0 deletions macos/Classes/IrisMethodChannelForward.mm
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
// Relative import to be able to reuse the C sources.
// See the comment in ../{projectName}}.podspec for more information.

// Ignore warning of [-Wdocumentation] of dart_api_dl.h
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdocumentation"
#include "../../src/iris_event.cc"
#pragma clang diagnostic pop

#include "../../src/iris_life_cycle_observer.mm"
4 changes: 0 additions & 4 deletions src/iris_event.h
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
#ifndef IRIIS_EVENT_H_
#define IRIIS_EVENT_H_

// Ignore warning of [-Wdocumentation] of dart_api_dl.h
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdocumentation"
#include "dart-sdk/include/dart_api_dl.h"
#pragma clang diagnostic pop

#ifdef _WIN32
#define EXPORT __declspec(dllexport)
Expand Down

0 comments on commit f26cdba

Please sign in to comment.