summaryrefslogtreecommitdiff
path: root/usr/src/lib
diff options
context:
space:
mode:
authorToomas Soome <tsoome@me.com>2021-03-17 11:59:27 +0200
committerToomas Soome <tsoome@me.com>2021-04-01 21:45:43 +0300
commit1d9fea2a5ece48bb3a7c454829f0c8a68b9fe5e1 (patch)
treec053e4fabd35556fe3c68b51c17aeb5696c07b5d /usr/src/lib
parentdd699a3e07422d6135575d35b14927cd260ef32e (diff)
downloadillumos-joyent-1d9fea2a5ece48bb3a7c454829f0c8a68b9fe5e1.tar.gz
13683 libc: uninitialized variables
Reviewed by: C Fraire <cfraire@me.com> Approved by: Dan McDonald <danmcd@joyent.com>
Diffstat (limited to 'usr/src/lib')
-rw-r--r--usr/src/lib/libc/sparc/fp/_D_cplx_mul.c4
-rw-r--r--usr/src/lib/libc/sparc/fp/_F_cplx_mul.c4
-rw-r--r--usr/src/lib/libc/sparc/fp/_Q_cplx_div.c4
-rw-r--r--usr/src/lib/libc/sparc/fp/_Q_cplx_div_ix.c4
-rw-r--r--usr/src/lib/libc/sparc/fp/_Q_cplx_div_rx.c4
-rw-r--r--usr/src/lib/libc/sparc/fp/_Q_cplx_lr_div.c4
-rw-r--r--usr/src/lib/libc/sparc/fp/_Q_cplx_lr_div_ix.c4
-rw-r--r--usr/src/lib/libc/sparc/fp/_Q_cplx_lr_div_rx.c4
-rw-r--r--usr/src/lib/libc/sparc/fp/_Q_cplx_lr_mul.c4
-rw-r--r--usr/src/lib/libc/sparc/fp/_Q_cplx_mul.c4
10 files changed, 10 insertions, 30 deletions
diff --git a/usr/src/lib/libc/sparc/fp/_D_cplx_mul.c b/usr/src/lib/libc/sparc/fp/_D_cplx_mul.c
index 6e32418f72..bfb92e1789 100644
--- a/usr/src/lib/libc/sparc/fp/_D_cplx_mul.c
+++ b/usr/src/lib/libc/sparc/fp/_D_cplx_mul.c
@@ -24,8 +24,6 @@
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/*
* _D_cplx_mul(z, w) returns z * w with infinities handled according
* to C99.
@@ -82,7 +80,7 @@ testinf(double x)
double _Complex
_D_cplx_mul(double _Complex z, double _Complex w)
{
- double _Complex v;
+ double _Complex v = 0;
double a, b, c, d, x, y;
int recalc, i, j;
diff --git a/usr/src/lib/libc/sparc/fp/_F_cplx_mul.c b/usr/src/lib/libc/sparc/fp/_F_cplx_mul.c
index f4073e9327..026a60c7a4 100644
--- a/usr/src/lib/libc/sparc/fp/_F_cplx_mul.c
+++ b/usr/src/lib/libc/sparc/fp/_F_cplx_mul.c
@@ -24,8 +24,6 @@
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/*
* _F_cplx_mul(z, w) returns z * w with infinities handled according
* to C99.
@@ -79,7 +77,7 @@ testinff(float x)
float _Complex
_F_cplx_mul(float _Complex z, float _Complex w)
{
- float _Complex v;
+ float _Complex v = 0;
float a, b, c, d;
double x, y;
int recalc, i, j;
diff --git a/usr/src/lib/libc/sparc/fp/_Q_cplx_div.c b/usr/src/lib/libc/sparc/fp/_Q_cplx_div.c
index b529c5eecf..8740c42f54 100644
--- a/usr/src/lib/libc/sparc/fp/_Q_cplx_div.c
+++ b/usr/src/lib/libc/sparc/fp/_Q_cplx_div.c
@@ -24,8 +24,6 @@
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/*
* On SPARC V8, _Q_cplx_div(v, z, w) sets *v = *z / *w with infin-
* ities handling according to C99.
@@ -85,7 +83,7 @@ testinfl(long double x)
long double _Complex
_Q_cplx_div(const long double _Complex *z, const long double _Complex *w)
{
- long double _Complex v;
+ long double _Complex v = 0;
#else
void
_Q_cplx_div(long double _Complex *v, const long double _Complex *z,
diff --git a/usr/src/lib/libc/sparc/fp/_Q_cplx_div_ix.c b/usr/src/lib/libc/sparc/fp/_Q_cplx_div_ix.c
index 2d9c18ba02..fa2b595406 100644
--- a/usr/src/lib/libc/sparc/fp/_Q_cplx_div_ix.c
+++ b/usr/src/lib/libc/sparc/fp/_Q_cplx_div_ix.c
@@ -24,8 +24,6 @@
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/*
* On SPARC V8, _Q_cplx_div_ix(v, b, w) sets *v = (I * *b / *w) with
* infinities handling according to C99.
@@ -80,7 +78,7 @@ testinfl(long double x)
long double _Complex
_Q_cplx_div_ix(const long double *pb, const long double _Complex *w)
{
- long double _Complex v;
+ long double _Complex v = 0;
#else
void
_Q_cplx_div_ix(long double _Complex *v, const long double *pb,
diff --git a/usr/src/lib/libc/sparc/fp/_Q_cplx_div_rx.c b/usr/src/lib/libc/sparc/fp/_Q_cplx_div_rx.c
index 80f050bd94..a500db400f 100644
--- a/usr/src/lib/libc/sparc/fp/_Q_cplx_div_rx.c
+++ b/usr/src/lib/libc/sparc/fp/_Q_cplx_div_rx.c
@@ -24,8 +24,6 @@
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/*
* On SPARC V8, _Q_cplx_div_rx(v, a, w) sets *v = *a / *w with in-
* finities handling according to C99.
@@ -80,7 +78,7 @@ testinfl(long double x)
long double _Complex
_Q_cplx_div_rx(const long double *pa, const long double _Complex *w)
{
- long double _Complex v;
+ long double _Complex v = 0;
#else
void
_Q_cplx_div_rx(long double _Complex *v, const long double *pa,
diff --git a/usr/src/lib/libc/sparc/fp/_Q_cplx_lr_div.c b/usr/src/lib/libc/sparc/fp/_Q_cplx_lr_div.c
index 92473041e3..120b94f38b 100644
--- a/usr/src/lib/libc/sparc/fp/_Q_cplx_lr_div.c
+++ b/usr/src/lib/libc/sparc/fp/_Q_cplx_lr_div.c
@@ -24,8 +24,6 @@
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/*
* On SPARC V8, _Q_cplx_lr_div(v, z, w) sets *v = *z / *w computed
* by the textbook formula without regard to exceptions or special
@@ -45,7 +43,7 @@
long double _Complex
_Q_cplx_lr_div(const long double _Complex *z, const long double _Complex *w)
{
- long double _Complex v;
+ long double _Complex v = 0;
#else
void
_Q_cplx_lr_div(long double _Complex *v, const long double _Complex *z,
diff --git a/usr/src/lib/libc/sparc/fp/_Q_cplx_lr_div_ix.c b/usr/src/lib/libc/sparc/fp/_Q_cplx_lr_div_ix.c
index ca968d809a..916d239159 100644
--- a/usr/src/lib/libc/sparc/fp/_Q_cplx_lr_div_ix.c
+++ b/usr/src/lib/libc/sparc/fp/_Q_cplx_lr_div_ix.c
@@ -24,8 +24,6 @@
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/*
* On SPARC V8, _Q_cplx_lr_div_ix(v, b, w) sets *v = (I * *b / *w)
* compute by the textbook formula without regard to exceptions or
@@ -45,7 +43,7 @@
long double _Complex
_Q_cplx_lr_div_ix(const long double *pb, const long double _Complex *w)
{
- long double _Complex v;
+ long double _Complex v = 0;
#else
void
_Q_cplx_lr_div_ix(long double _Complex *v, const long double *pb,
diff --git a/usr/src/lib/libc/sparc/fp/_Q_cplx_lr_div_rx.c b/usr/src/lib/libc/sparc/fp/_Q_cplx_lr_div_rx.c
index b6b91ddf48..8159e10ab0 100644
--- a/usr/src/lib/libc/sparc/fp/_Q_cplx_lr_div_rx.c
+++ b/usr/src/lib/libc/sparc/fp/_Q_cplx_lr_div_rx.c
@@ -24,8 +24,6 @@
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/*
* On SPARC V8, _Q_cplx_lr_div_rx(v, a, w) sets *v = *a / *w computed
* by the textbook formula without regard to exceptions or special
@@ -45,7 +43,7 @@
long double _Complex
_Q_cplx_lr_div_rx(const long double *pa, const long double _Complex *w)
{
- long double _Complex v;
+ long double _Complex v = 0;
#else
void
_Q_cplx_lr_div_rx(long double _Complex *v, const long double *pa,
diff --git a/usr/src/lib/libc/sparc/fp/_Q_cplx_lr_mul.c b/usr/src/lib/libc/sparc/fp/_Q_cplx_lr_mul.c
index f2be5888df..b52ead1ba2 100644
--- a/usr/src/lib/libc/sparc/fp/_Q_cplx_lr_mul.c
+++ b/usr/src/lib/libc/sparc/fp/_Q_cplx_lr_mul.c
@@ -24,8 +24,6 @@
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/*
* On SPARC V8, _Q_cplx_lr_mul(v, z, w) sets *v = *z * *w computed by
* the textbook formula without regard to exceptions or special cases.
@@ -44,7 +42,7 @@
long double _Complex
_Q_cplx_lr_mul(const long double _Complex *z, const long double _Complex *w)
{
- long double _Complex v;
+ long double _Complex v = 0;
#else
void
_Q_cplx_lr_mul(long double _Complex *v, const long double _Complex *z,
diff --git a/usr/src/lib/libc/sparc/fp/_Q_cplx_mul.c b/usr/src/lib/libc/sparc/fp/_Q_cplx_mul.c
index 9e4d41b2f7..6afbbe6a19 100644
--- a/usr/src/lib/libc/sparc/fp/_Q_cplx_mul.c
+++ b/usr/src/lib/libc/sparc/fp/_Q_cplx_mul.c
@@ -24,8 +24,6 @@
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/*
* On SPARC V8, _Q_cplx_mul(v, z, w) sets *v = *z * *w with infinities
* handled according to C99.
@@ -86,7 +84,7 @@ testinfl(long double x)
long double _Complex
_Q_cplx_mul(const long double _Complex *z, const long double _Complex *w)
{
- long double _Complex v;
+ long double _Complex v = 0;
#else
void
_Q_cplx_mul(long double _Complex *v, const long double _Complex *z,