db: fix uninitialised variable warnings
PATCH 1/1 db: fix uninitialised variable warnings
From: Dave Chinner <[email protected]>
New versions of gcc barf on the conversion table code in db/convert.c. Shut it up by initialising the conversion array.
Signed-off-by Dave Chinner <[email protected]>
--- db/convert.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
db/convert.c +1 -1
@@ -157,7 +157,7 @@ convert_f(int argc, char **argv) {ctype_t c;int conmask; -cval_t cvals[NCTS ]; +cval_t cvals[NCTS ] = {};int i;int mask;__uint64_t v;
Signature · 6 lines
2.1.4 _______________________________________________ xfs mailing list [email protected] http://oss.sgi.com/mailman/listinfo/xfs
Quoted 7 lines · Dave Chinner
From: Dave Chinner <[email protected]>
New versions of gcc barf on the conversion table code in
db/convert.c. Shut it up by initialising the conversion array.Signed-off-by Dave Chinner <[email protected]>---
Reviewed-by Brian Foster <[email protected]>
Quoted 23 lines
db/convert.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)db/convert.c +1
-1@@ -157,7 +157,7 @@ convert_f(int argc, char **argv) {ctype_t c;int conmask; -cval_t cvals[NCTS ]; +cval_t cvals[NCTS ] = {};int i;int mask;__uint64_t v;Signature · 6 lines
2.1.4 _______________________________________________ xfs mailing list [email protected] http://oss.sgi.com/mailman/listinfo/xfs
_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs