diff --git a/ext/oci8/bind.c b/ext/oci8/bind.c index 032a7584..f1069f85 100644 --- a/ext/oci8/bind.c +++ b/ext/oci8/bind.c @@ -383,7 +383,7 @@ static sb4 in_bind_callback(void *ictxp, OCIBind *bindp, ub4 iter, ub4 index, vo if (cb->tail == &cb->head) { /* empty string */ - *bufpp = ""; + *bufpp = (void *)""; *alenp = 0; *piecep = OCI_ONE_PIECE; } else { diff --git a/ext/oci8/oci8.h b/ext/oci8/oci8.h index 6674e912..03553eb7 100644 --- a/ext/oci8/oci8.h +++ b/ext/oci8/oci8.h @@ -424,6 +424,7 @@ void *oci8_check_typeddata(VALUE obj, const oci8_handle_data_type_t *data_type, extern VALUE eOCIException; extern VALUE eOCIBreak; void Init_oci8_error(void); +NORETURN(void oci8_do_raise(OCIError *errhp, sword status, OCIStmt *stmthp, const char *file, int line)); NORETURN(void oci8_do_env_raise(OCIEnv *envhp, sword status, int free_envhp, const char *file, int line)); NORETURN(void oci8_do_raise_init_error(const char *file, int line)); sb4 oci8_get_error_code(OCIError *errhp); diff --git a/ext/oci8/oraconf.rb b/ext/oci8/oraconf.rb index 7c45927f..d2975200 100644 --- a/ext/oci8/oraconf.rb +++ b/ext/oci8/oraconf.rb @@ -995,16 +995,16 @@ def initialize(inc_dir, lib_dir) init if RUBY_PLATFORM =~ /mswin32|mswin64|cygwin|mingw32|bccwin32/ # when Windows - unless File.exist?("#{ic_dir}/sdk/lib/msvc/oci.lib") + unless File.exist?("#{lib_dir}/sdk/lib/msvc/oci.lib") raise <