Geert Uytterhoeven 4b2e0162e4 fs/proc: Add compiler check for -Wno-override-init to support gcc < 4.2
With gcc < 4.2 (e.g. 4.1.2):

      CC      fs/proc/task_mmu.o
    cc1: error: unrecognized command line option "-Wno-override-init"

To fix this, only enable the compiler option when it is actually
supported by the compiler.

Fixes: ca52953f5f24 ("fs/proc/task_mmu.c: suppress compilation warnings with W=1")
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Acked-by: Valdis Kletnieks <valdis.kletnieks@vt.edu>
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2016-08-03 12:45:23 -04:00
..
2016-06-10 18:14:47 -07:00
2016-07-28 12:26:31 -07:00
2016-08-02 19:39:09 -04:00
2016-05-20 17:58:30 -07:00
2016-07-28 12:26:31 -07:00
2016-07-30 16:33:25 -07:00
2016-07-29 12:05:25 +02:00
2016-06-23 00:29:53 +02:00
2016-05-23 17:04:14 -07:00
2016-07-27 09:53:35 -07:00
2016-06-07 22:07:09 -04:00
2016-07-28 17:38:16 -07:00
2016-07-27 09:53:35 -07:00
2016-06-21 09:38:45 +10:00
2016-06-21 09:23:11 +10:00
2016-05-23 17:04:14 -07:00
2016-06-20 17:11:29 -04:00
2016-07-01 10:24:18 -04:00
2016-06-21 09:23:11 +10:00
2016-07-26 16:19:19 -07:00
2016-07-26 16:19:19 -07:00
2016-01-22 18:04:28 -05:00