Skip to content

Commit b427f69

Browse files
committed
temporary workaround to allow esp32 build
1 parent 71eb196 commit b427f69

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/tls/utility/TLSClientOta.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@
7373
void begin(Client* client);
7474

7575
#if CONNECTION_HANDLER_ENABLED
76+
#pragma GCC diagnostic push
77+
#pragma GCC diagnostic ignored "-Wswitch"
78+
#pragma GCC diagnostic ignored "-Wreturn-type"
7679
static inline Client& getNewClient(NetworkAdapter net) {
7780
switch(net) {
7881
#ifdef BOARD_HAS_WIFI
@@ -101,5 +104,6 @@
101104
#endif // BOARD_HAS_CELLULAR
102105
}
103106
}
107+
#pragma GCC diagnostic pop
104108
#endif // CONNECTION_HANDLER_ENABLED
105109
};

0 commit comments

Comments
 (0)