diff --git a/docs/reference/glib/compiling.sgml b/docs/reference/glib/compiling.sgml
index 5ebef07ea..a47365391 100644
--- a/docs/reference/glib/compiling.sgml
+++ b/docs/reference/glib/compiling.sgml
@@ -71,9 +71,20 @@ $ cc `pkg-config --cflags --libs glib-2.0` hello.c -o hello
-If you want to make sure that your program doesn't use any deprecated
-functions, you can define the preprocessor symbol G_DISABLE_DEPRECATED
-by using the command line option -DG_DISABLE_DEPRECATED=1.
+Deprecated GLib functions are annotated to make the compiler
+emit warnings when they are used (e.g. with gcc, you need to use
+the -Wdeprecated-declarations option). If these warnings are
+problematic, they can be turned off by defining the preprocessor
+symbol GLIB_DISABLE_DEPRECATION_WARNINGS by using the commandline
+option -DGLIB_DISABLE_DEPRECATION_WARNINGS
+
+
+If you want to make really sure that your program
+doesn't use any deprecated functions, you can define the preprocessor
+symbol G_DISABLE_DEPRECATED by using the commandline option
+-DG_DISABLE_DEPRECATED. This will hide deprecated
+API from the compiler entirely, most likely causing your program's
+build to fail.