d: Don't warn about variables initialized with 'void'
authorIain Buclaw <ibuclaw@gdcproject.org>
Tue, 8 Sep 2020 16:16:45 +0000 (18:16 +0200)
committerIain Buclaw <ibuclaw@gdcproject.org>
Thu, 10 Sep 2020 16:04:11 +0000 (18:04 +0200)
commit27f698bde905c1c106f0404dc7d0df1819761ce7
tree9738582dd620f8d87eaf53b1ad277ad133c9ab72
parent29ff25e70671ce2046aab5cf89bf519ec6cf2bed
d: Don't warn about variables initialized with 'void'

There is no problem with using `T var = void', it is if the variable
remains uninitialized on first use that a warning should be issued.

gcc/d/ChangeLog:

* decl.cc (DeclVisitor::visit (VarDeclaration *)): Don't warn about
variables initialized with 'void'.
gcc/d/decl.cc