Changeset: 19f354a2a48c for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/19f354a2a48c
Modified Files:
        sql/backends/monet5/copy_convert.c
        sql/backends/monet5/copy_convert_num.h
Branch: copyparpipe
Log Message:

Fix some warnings


diffs (35 lines):

diff --git a/sql/backends/monet5/copy_convert.c 
b/sql/backends/monet5/copy_convert.c
--- a/sql/backends/monet5/copy_convert.c
+++ b/sql/backends/monet5/copy_convert.c
@@ -90,9 +90,9 @@ parse_fixed_width_column(
        void *fx)
 {
        str msg = MAL_SUCCEED;
-       BAT *block_bat;
-       BAT *offsets_bat;
-       BAT *parsed_bat;
+       BAT *block_bat = NULL;
+       BAT *offsets_bat = NULL;
+       BAT *parsed_bat = NULL;
        struct error_handling errors = {
                .rel_row = -1,
        };
diff --git a/sql/backends/monet5/copy_convert_num.h 
b/sql/backends/monet5/copy_convert_num.h
--- a/sql/backends/monet5/copy_convert_num.h
+++ b/sql/backends/monet5/copy_convert_num.h
@@ -152,6 +152,7 @@ TMPL_SUFFIXED(COPYparse_decimal) (
        int *digits, int *scale,
        int *dummy)
 {
+       (void)dummy;
        struct decimal_parms myparms = {
                .digits = *digits,
                .scale = *scale,
@@ -168,6 +169,7 @@ TMPL_SUFFIXED(COPYparse_integer) (
        bat *block_bat_id, bat *offsets_bat_id,
        int *dummy)
 {
+       (void)dummy;
        return parse_fixed_width_column(
                parsed_bat_id, "copy.parse_integer",
                *block_bat_id, *offsets_bat_id,
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to