diff options
author | Björn-Egil Dahlberg <[email protected]> | 2014-06-24 01:23:58 +0200 |
---|---|---|
committer | Björn-Egil Dahlberg <[email protected]> | 2014-07-15 17:36:05 +0200 |
commit | 211d9b31a73e30f44a428a2328b7705136f263d5 (patch) | |
tree | dc5b19ba30be01889ed6c6b2303a617a4800de34 /lib/odbc/c_src/odbcserver.h | |
parent | 21ac9c6c397b13ec0b981d75270327780eee5aac (diff) | |
download | otp-211d9b31a73e30f44a428a2328b7705136f263d5.tar.gz otp-211d9b31a73e30f44a428a2328b7705136f263d5.tar.bz2 otp-211d9b31a73e30f44a428a2328b7705136f263d5.zip |
odbc: Suppress signedness warnings for 'char *'
Three different pointer types are used for strings.
SQLCHAR pointer - used against ODBC driver
char pointer - used against erl_interface
byte pointer - used internally
SQLCHAR is 'unsigned char' while erl_interface is 'signed char'
byte pointer should probably not be used at all.
Diffstat (limited to 'lib/odbc/c_src/odbcserver.h')
-rw-r--r-- | lib/odbc/c_src/odbcserver.h | 4 |
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 ) |