diff options
-rw-r--r-- | Makefile.am | 2 | ||||
-rw-r--r-- | test/libec_slap.c | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/Makefile.am b/Makefile.am index 4191beb..f442ecf 100644 --- a/Makefile.am +++ b/Makefile.am @@ -10,7 +10,7 @@ INCLUDE = -I$(abs_top_builddir)/include \ -I$(abs_top_builddir)/include/xor_codes AM_CPPFLAGS = $(CPPFLAGS) $(INCLUDE) -AM_CPPFLAGS += -Werror +AM_CPPFLAGS += -Werror -Wall AM_CFLAGS = -fPIC $(AM_CPPFLAGS) @GCOV_FLAGS@ -L/usr/local/lib diff --git a/test/libec_slap.c b/test/libec_slap.c index 0f3c24b..ac69ee4 100644 --- a/test/libec_slap.c +++ b/test/libec_slap.c @@ -52,7 +52,7 @@ struct frag_array_set { void print_mask(unsigned long mask) { unsigned int i = 0; - unsigned long pos = 1; + long pos = 1; if (mask == 0) { fprintf(stderr," No Missing fragments"); @@ -69,7 +69,7 @@ void print_mask(unsigned long mask) void missing_mask_to_array(long mask, int *missing) { unsigned int i = 0; - unsigned long pos = 1; + long pos = 1; for (i = 0; i < (sizeof(size_t) * 8) - 1; i++) { if ((mask & (pos << i)) != 0) { @@ -78,7 +78,7 @@ void missing_mask_to_array(long mask, int *missing) } } -size_t add_item_to_missing_mask(unsigned long mask, unsigned int pos) +size_t add_item_to_missing_mask(unsigned long mask, long pos) { if (pos < 0) { return mask; |