aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meson/suppressions/meson.build8
-rw-r--r--src/win.c2
2 files changed, 9 insertions, 1 deletions
diff --git a/meson/suppressions/meson.build b/meson/suppressions/meson.build
index 541d533..ffc6595 100644
--- a/meson/suppressions/meson.build
+++ b/meson/suppressions/meson.build
@@ -96,6 +96,14 @@ if is_variable('cpp')
'-Wno-inline',
'-Wno-padded',
]
+
+ if host_machine.system() == 'windows'
+ cpp_warnings += [
+ '-Wno-cast-function-type',
+ '-Wno-suggest-attribute=format',
+ ]
+ endif
+
elif cpp.get_id() == 'msvc'
cpp_warnings += [
'/wd4061', # enumerator in switch is not explicitly handled
diff --git a/src/win.c b/src/win.c
index 8c95386..4b303eb 100644
--- a/src/win.c
+++ b/src/win.c
@@ -918,7 +918,7 @@ puglUpdate(PuglWorld* world, double timeout)
if (timeout < 0.0) {
st = puglPollWinEvents(world, timeout);
st = st ? st : puglDispatchWinEvents(world);
- } else if (timeout == 0.0) {
+ } else if (timeout <= 0.001) {
st = puglDispatchWinEvents(world);
} else {
const double endTime = startTime + timeout - 0.001;