提交 ec91f92d 编写于 作者: M Matt Caswell

Silence some "may be uninitialized when used" warning

Clang was complaining about some variables possibly being uninitialized
when used. The warnings are bogus, but clang can't figure that out. This
silences the warnings.
Reviewed-by: NRichard Levitte <levitte@openssl.org>
上级 f8f686ec
......@@ -92,7 +92,7 @@ static void dofptest(int test, double val, char *width, int prec, int *fail)
int i;
for (i = 0; i < 5; i++) {
char *fspec;
char *fspec = NULL;
switch (i) {
case 0:
fspec = "e";
......@@ -143,8 +143,8 @@ int main(int argc, char **argv)
int test = 0;
int i;
int fail = 0;
int prec;
char *width;
int prec = -1;
char *width = "";
const double frac = 2.0/3.0;
char buf[80];
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册