warning on MSYS2 building
[282/951] Compiling C object glib/tests/d796b50@@win32@exe/win32.c.obj
In file included from ../glib-2.64.5/glib/gtypes.h:32,
from ../glib-2.64.5/glib/galloca.h:32,
from ../glib-2.64.5/glib/glib.h:30,
from ../glib-2.64.5/glib/tests/win32.c:24:
../glib-2.64.5/glib/tests/win32.c: In function 'test_subst_pid_and_event':
glib/glibconfig.h:65:33: warning: conversion from 'long long unsigned int' to 'DWORD' {aka 'long unsigned int'} changes value from '18446744073709551615' to '4294967295' [-Woverflow]
65 | #define G_GUINT64_CONSTANT(val) (G_GNUC_EXTENSION (val##ULL))
| ^
../glib-2.64.5/glib/gtypes.h:101:21: note: in expansion of macro 'G_GUINT64_CONSTANT'
101 | #define G_MAXUINT64 G_GUINT64_CONSTANT(0xffffffffffffffff)
| ^~~~~~~~~~~~~~~~~~
glib/glibconfig.h:84:19: note: in expansion of macro 'G_MAXUINT64'
84 | #define G_MAXSIZE G_MAXUINT64
| ^~~~~~~~~~~
../glib-2.64.5/glib/tests/win32.c:43:14: note: in expansion of macro 'G_MAXSIZE'
43 | DWORD bp = G_MAXSIZE;
| ^~~~~~~~~
../glib-2.64.5/gio/gwin32appinfo.c:4143:80: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
4143 | g_variant_builder_add (&builder, "{sv}", "pid", g_variant_new_int32 ((gint32) pid));
|
Edited by lillolollo