Browse Source

[core] disable strict-alias warnings for libev wrappers

Change-Id: I6bea24eb35838e91cc3c3cc6a6f94664c7446533
master
Stefan Bühler 4 years ago
parent
commit
dca42093b1
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      include/lighttpd/events.h

+ 5
- 0
include/lighttpd/events.h View File

@@ -194,6 +194,10 @@ LI_API const char* li_event_type_string(liEventType type);

/* inline implementations */

#pragma GCC diagnostic ignored "-Wunknown-pragmas"
#pragma clang diagnostic push
#pragma GCC diagnostic ignored "-Wstrict-aliasing"

INLINE li_tstamp li_event_now(liEventLoop *loop) {
return ev_now(loop->loop);
}
@@ -532,5 +536,6 @@ INLINE liEventCheck* li_event_check_from(liEventBase *base) {
return LI_CONTAINER_OF(base, liEventCheck, base);
}

#pragma clang diagnostic pop

#endif

Loading…
Cancel
Save