--- a/hacks/memscroller.c
+++ b/hacks/memscroller.c
@@ -307,7 +307,7 @@
       -- sbrk(2) man page on BSD systems, as of 1995 or so.
  */
 #ifdef HAVE_SBRK
-# if (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 2)) /* gcc >= 4.2 */
+# if (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6)) /* gcc >= 4.6 */
    /* Don't print "warning: 'sbrk' is deprecated". */
 #  pragma GCC diagnostic ignored "-Wdeprecated-declarations"
 # endif
