aboutsummaryrefslogtreecommitdiff
path: root/gcc/d
diff options
context:
space:
mode:
authorIain Buclaw <ibuclaw@gdcproject.org>2020-09-08 18:22:04 +0200
committerIain Buclaw <ibuclaw@gdcproject.org>2020-09-10 18:04:11 +0200
commitead85749b0a8efb26325571b36c4c966280146bc (patch)
treef617be31ca314e06003d1dfee862bf7e2e731ad1 /gcc/d
parent27f698bde905c1c106f0404dc7d0df1819761ce7 (diff)
downloadgcc-ead85749b0a8efb26325571b36c4c966280146bc.zip
gcc-ead85749b0a8efb26325571b36c4c966280146bc.tar.gz
gcc-ead85749b0a8efb26325571b36c4c966280146bc.tar.bz2
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.
Diffstat (limited to 'gcc/d')
-rw-r--r--gcc/d/lang.opt6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/d/lang.opt b/gcc/d/lang.opt
index ade92d2..b88fe6f 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