summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLoic Dachary <loic@dachary.org>2014-03-06 14:48:34 +0100
committerLoic Dachary <loic@dachary.org>2014-03-06 17:47:59 +0100
commit3c4a451b509cfc3d51f9906326a66ac3e95de9d4 (patch)
tree7c37308c99e853c9b493233aacd1570a9d2f24a8 /src
parentd8863ceff7c4e462c997cbdd8f5b53ea165df3fe (diff)
downloadgf-complete-3c4a451b509cfc3d51f9906326a66ac3e95de9d4.tar.gz
silence some warnings for unset variables
By setting them when they are defined and when the compiler fails to see the logic is ok. Signed-off-by: Loic Dachary <loic@dachary.org>
Diffstat (limited to 'src')
-rw-r--r--src/gf.c2
-rw-r--r--src/gf_w8.c6
2 files changed, 4 insertions, 4 deletions
diff --git a/src/gf.c b/src/gf.c
index c14f03e..5a71ad6 100644
--- a/src/gf.c
+++ b/src/gf.c
@@ -767,7 +767,7 @@ void gf_set_region_data(gf_region_data *rd,
int xor,
int align)
{
- gf_internal_t *h;
+ gf_internal_t *h = NULL;
int wb;
uint32_t a;
unsigned long uls, uld;
diff --git a/src/gf_w8.c b/src/gf_w8.c
index b171639..44c42a5 100644
--- a/src/gf_w8.c
+++ b/src/gf_w8.c
@@ -799,9 +799,9 @@ gf_w8_logzero_multiply_region(gf_t *gf, void *src, void *dest, uint32_t val, int
int gf_w8_log_init(gf_t *gf)
{
gf_internal_t *h;
- struct gf_w8_logtable_data *ltd;
- struct gf_w8_logzero_table_data *ztd;
- struct gf_w8_logzero_small_table_data *std;
+ struct gf_w8_logtable_data *ltd = NULL;
+ struct gf_w8_logzero_table_data *ztd = NULL;
+ struct gf_w8_logzero_small_table_data *std = NULL;
uint8_t *alt;
uint8_t *inv;
int i, b;