From: Iain Buclaw Date: Tue, 8 Sep 2020 16:22:04 +0000 (+0200) Subject: d: Enable miscellaneous warnings by -Wextra flag X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ead85749b0a8efb26325571b36c4c966280146bc;p=gcc.git 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. --- 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