CLang on Windows warns about inconsistent dllimports
When compiling glibmm 2.80.0 with CLang on Windows I get the following warnings:
[15/319] Compiling C++ object glib/glibmm/libglibmm-2.68-1.dll.p/.._.._untracked_glib_glibmm_wrap_init.cc.obj
../glibmm-2.80.0/untracked/glib/glibmm/wrap_init.cc:48:7: warning: 'g_binding_get_type' redeclared without 'dllimport' attribute: previous 'dllimport' ignored [-Winconsistent-dllimport]
48 | GType g_binding_get_type(void);
| ^
D:/msys64/clang64/include/glib-2.0/gobject/gbinding.h:102:23: note: previous declaration is here
102 | GType g_binding_get_type (void) G_GNUC_CONST;
| ^
D:/msys64/clang64/include/glib-2.0/gobject/gbinding.h:101:1: note: previous attribute is here
101 | GOBJECT_AVAILABLE_IN_ALL
| ^
D:/msys64/clang64/include/glib-2.0/gobject/gobject-visibility.h:22:34: note: expanded from macro 'GOBJECT_AVAILABLE_IN_ALL'
22 | #define GOBJECT_AVAILABLE_IN_ALL _GOBJECT_EXTERN
| ^
D:/msys64/clang64/include/glib-2.0/gobject/gobject-visibility.h:19:25: note: expanded from macro '_GOBJECT_EXTERN'
19 | #define _GOBJECT_EXTERN _GOBJECT_API extern
| ^
D:/msys64/clang64/include/glib-2.0/gobject/gobject-visibility.h:16:24: note: expanded from macro '_GOBJECT_API'
16 | # define _GOBJECT_API _GOBJECT_IMPORT
| ^
D:/msys64/clang64/include/glib-2.0/gobject/gobject-visibility.h:5:38: note: expanded from macro '_GOBJECT_IMPORT'
5 | # define _GOBJECT_IMPORT __declspec(dllimport)
| ^
../glibmm-2.80.0/untracked/glib/glibmm/wrap_init.cc:52:8: warning: 'g_convert_error_quark' redeclared without 'dllimport' attribute: previous 'dllimport' ignored [-Winconsistent-dllimport]
52 | GQuark g_convert_error_quark(void);
| ^
D:/msys64/clang64/include/glib-2.0/glib/gconvert.h:77:8: note: previous declaration is here
77 | GQuark g_convert_error_quark (void);
| ^
D:/msys64/clang64/include/glib-2.0/glib/gconvert.h:76:1: note: previous attribute is here
76 | GLIB_AVAILABLE_IN_ALL
| ^
D:/msys64/clang64/include/glib-2.0/glib/glib-visibility.h:22:31: note: expanded from macro 'GLIB_AVAILABLE_IN_ALL'
22 | #define GLIB_AVAILABLE_IN_ALL _GLIB_EXTERN
| ^
D:/msys64/clang64/include/glib-2.0/glib/glib-visibility.h:19:22: note: expanded from macro '_GLIB_EXTERN'
19 | #define _GLIB_EXTERN _GLIB_API extern
| ^
D:/msys64/clang64/include/glib-2.0/glib/glib-visibility.h:16:21: note: expanded from macro '_GLIB_API'
16 | # define _GLIB_API _GLIB_IMPORT
| ^
D:/msys64/clang64/include/glib-2.0/glib/glib-visibility.h:5:35: note: expanded from macro '_GLIB_IMPORT'
5 | # define _GLIB_IMPORT __declspec(dllimport)
| ^
...