aboutsummaryrefslogtreecommitdiffstats
path: root/lib/odbc/c_src/odbcserver.h
diff options
context:
space:
mode:
authorBjörn-Egil Dahlberg <[email protected]>2014-09-04 14:51:57 +0200
committerBjörn-Egil Dahlberg <[email protected]>2014-09-04 14:51:57 +0200
commite036643fbd5c5cba7f652734966570fee7ca99b3 (patch)
tree94ac9b674ba3eae5543f85d3ec3e6d7b4afaff38 /lib/odbc/c_src/odbcserver.h
parentde618b04eb78702cff7c08f984d6779b8ef06895 (diff)
parent211d9b31a73e30f44a428a2328b7705136f263d5 (diff)
downloadotp-e036643fbd5c5cba7f652734966570fee7ca99b3.tar.gz
otp-e036643fbd5c5cba7f652734966570fee7ca99b3.tar.bz2
otp-e036643fbd5c5cba7f652734966570fee7ca99b3.zip
Merge branch 'egil/fix-llvm-cc-warnings/OTP-12138' into maint
* egil/fix-llvm-cc-warnings/OTP-12138: odbc: Suppress signedness warnings for 'char *' ic: Suppress unused-value warning erts: Fix tentative-definition-incomplete-type erts: Don't redefine '_XOPEN_SOURCE'
Diffstat (limited to 'lib/odbc/c_src/odbcserver.h')
-rw-r--r--lib/odbc/c_src/odbcserver.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/odbc/c_src/odbcserver.h b/lib/odbc/c_src/odbcserver.h
index 916a7cb31d..7112fd2d47 100644
--- a/lib/odbc/c_src/odbcserver.h
+++ b/lib/odbc/c_src/odbcserver.h
@@ -119,7 +119,7 @@
/*------------------------ TYPDEFS ----------------------------------*/
-typedef unsigned char byte;
+typedef char byte;
typedef int Boolean;
typedef struct {
@@ -201,4 +201,4 @@ typedef enum {
#define param_query(db_state) (db_state -> param_query)
#define out_params(db_state) (db_state -> out_params)
#define extended_errors(db_state) (db_state -> extended_errors)
-#define extended_error(db_state, errorcode) ( extended_errors(state) ? errorcode : NULL )
+#define extended_error(db_state, errorcode) ( extended_errors(state) ? ((char *)errorcode) : NULL )