glib: Add deprecation guards for compiler

7 jobs for gtk-notes in 5 minutes and 32 seconds (queued for 2 seconds)
latest
Status Job ID Name Coverage
  Build
passed #6527100
build

00:03:05

passed #6527105
build_android

00:00:42

passed #6527101
build_clang_libcpp

00:04:12

passed #6527104
build_clazy

00:05:32

passed #6527103
build_mingw64_fedora

00:02:12

passed #6527102
build_ubuntu_16_04

00:01:52

passed #6527099
clang_format

00:01:04