Re: [Qemu-devel] [PATCH v3 3/3] glib: enforce the minimum required version and warn about old APIs

2018-06-08 Thread Thomas Huth
On 08.06.2018 15:16, Daniel P. Berrangé wrote: > There are two useful macros that can be defined before including > glib.h that are related to the min required glib version > > - GLIB_VERSION_MIN_REQUIRED > >When this is defined, if code uses an API that was deprecated >in this version,

[Qemu-devel] [PATCH v3 3/3] glib: enforce the minimum required version and warn about old APIs

2018-06-08 Thread Daniel P . Berrangé
There are two useful macros that can be defined before including glib.h that are related to the min required glib version - GLIB_VERSION_MIN_REQUIRED When this is defined, if code uses an API that was deprecated in this version, or older, a compiler warning will be emitted. This alerts