From 24faf6b0d2fe990e9334dd2e3238f749fec87897 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Wed, 5 Jul 2017 17:14:50 -0700 Subject: =?UTF-8?q?Don=E2=80=99t=20use=20-Woverride-init?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I have some further changes in mind that would also need to disable the -Woverride-init warnings. In practice these warnings seem to be more trouble than they’re worth, so disable them in the cc command line. * configure.ac: Disable -Woverride-init here ... * src/bytecode.c: ... rather than here. --- src/bytecode.c | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'src/bytecode.c') diff --git a/src/bytecode.c b/src/bytecode.c index e781a87d16f..a473dfb9c8c 100644 --- a/src/bytecode.c +++ b/src/bytecode.c @@ -452,14 +452,6 @@ exec_byte_code (Lisp_Object bytestr, Lisp_Object vector, Lisp_Object maxdepth, the table clearer. */ #define LABEL(OP) [OP] = &&insn_ ## OP -#if GNUC_PREREQ (4, 6, 0) -# pragma GCC diagnostic push -# pragma GCC diagnostic ignored "-Woverride-init" -#elif defined __clang__ -# pragma GCC diagnostic push -# pragma GCC diagnostic ignored "-Winitializer-overrides" -#endif - /* This is the dispatch table for the threaded interpreter. */ static const void *const targets[256] = { @@ -471,10 +463,6 @@ exec_byte_code (Lisp_Object bytestr, Lisp_Object vector, Lisp_Object maxdepth, #undef DEFINE }; -#if GNUC_PREREQ (4, 6, 0) || defined __clang__ -# pragma GCC diagnostic pop -#endif - #endif -- cgit v1.2.1