US Election Assistance Commission - Voluntary Voting System Guidelines Vote
EAC Home
Introduction
View Guidelines
View Comments
Glossary

View Comments

Section CommentsGeneral CommentsGlossary Comments
 
Name :   Scott Hunsaker
Organization :   Hart Intercivic
Post Date :   9/30/2005

Section Comments
Section :  .20.5
Page no. :  5-10
Line no.:  
Comment :  131
5.4.2.s

Comment:
Initializes every variable upon
declaration where permitted.

Recommended change:
"Initializes every variable upon
declaration where permitted,
and where subsequent
assignment is not guaranteed
by program flow."

Rationale:
Initializing a variable that is
guaranteed to have an
assigned value by program
flow causes a warning to be
generated by modern
compilers and source code
analysis tools. The standard
should not mandate coding
practices that cause compiler
warnings to be generated.
[Borland C++ Builder V. 6] [PCLint
V. 7.5]