From ead85749b0a8efb26325571b36c4c966280146bc Mon Sep 17 00:00:00 2001 From: Iain Buclaw Date: Tue, 8 Sep 2020 18:22:04 +0200 Subject: [PATCH] d: Enable miscellaneous warnings by -Wextra flag These warnings are handled outside of the D core language front-end, so shouldn't be enabled by -Wall. gcc/d/ChangeLog: * lang.opt (Waddress): Enable warning by -Wextra. (Wcast-result): Likewise. (Wunknown-pragmas): Likewise. --- gcc/d/lang.opt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gcc/d/lang.opt b/gcc/d/lang.opt index ade92d21cc6..b88fe6f301f 100644 --- a/gcc/d/lang.opt +++ b/gcc/d/lang.opt @@ -99,7 +99,7 @@ D Joined Separate ; Documented in C Waddress -D Warning Var(warn_address) +D Warning Var(warn_address) LangEnabledBy(D, Wextra) ; Documented in C Wall @@ -119,7 +119,7 @@ D ; Documented in C Wcast-result -D Warning Var(warn_cast_result) +D Warning Var(warn_cast_result) LangEnabledBy(D, Wextra) Warn about casts that will produce a null result. Wdeprecated @@ -143,7 +143,7 @@ D ; Documented in C Wunknown-pragmas -D LangEnabledBy(D, Wall) +D Var(warn_unknown_pragmas) LangEnabledBy(D, Wextra) ; Documented in C Wvarargs -- 2.30.2