@@ -584,7 +584,7 @@ static inline void free_binary_params(int *formats, int *lengths)
584
584
}
585
585
586
586
static inline Oid * copy_param_types (
587
- value v_param_types , size_t nparams , size_t nparam_types )
587
+ value v_param_types , size_t nparams , size_t nparam_types )
588
588
{
589
589
Oid * param_types ;
590
590
size_t i ;
@@ -595,8 +595,8 @@ static inline Oid * copy_param_types(
595
595
value v_param_type = Field (v_param_types , i );
596
596
param_types [i ] = Int_val (v_param_type );
597
597
}
598
- memset (param_types + nparam_types , 0 ,
599
- (nparams - nparam_types ) * sizeof (Oid ));
598
+ memset (
599
+ param_types + nparam_types , 0 , (nparams - nparam_types ) * sizeof (Oid ));
600
600
return param_types ;
601
601
}
602
602
@@ -680,9 +680,8 @@ CAMLprim value PQexecParams_stub(
680
680
CAMLreturn (alloc_result (res , np_cb ));
681
681
}
682
682
683
- CAMLprim value PQexecParams_stub_bc (value * argv , int argn )
683
+ CAMLprim value PQexecParams_stub_bc (value * argv , int __unused argn )
684
684
{
685
- (void )argn ; /* unused */
686
685
return
687
686
PQexecParams_stub (argv [0 ], argv [1 ], argv [2 ], argv [3 ], argv [4 ], argv [5 ]);
688
687
}
@@ -1033,8 +1032,7 @@ CAMLprim intnat PQsendPrepare_stub(
1033
1032
const char * query = String_val (v_query );
1034
1033
size_t nparams = Wosize_val (v_param_types );
1035
1034
Oid * param_types = copy_param_types (v_param_types , nparams , nparams );
1036
- intnat res ;
1037
- res = PQsendPrepare (conn , stm_name , query , nparams , param_types );
1035
+ intnat res = PQsendPrepare (conn , stm_name , query , nparams , param_types );
1038
1036
if (param_types != NULL ) caml_stat_free (param_types );
1039
1037
return res ;
1040
1038
}
0 commit comments