Subject | gpre and c++ generates warning |
---|---|
Author | Toni Pljakoski |
Post date | 2001-09-04T08:36:21Z |
Hi all,
I have a problem when compiling c++ code generated by gpre.
Following statement are embedded in my code:
EXEC SQL DECLARE SELECT_ALL_RECORDS CURSOR FOR
SELECT * FROM MY_TABLE;
EXEC SQL
OPEN SELECT_ALL_RECORDS;
and I recieve following warning from gcc version 2.96 20000731 (Red Hat
Linux 7.1 2.96-81):
librmdb.exx(966): warning: passing negative value `-1' for argument
passing 6 of `isc_dsql_execute_m (long int *, void **, void **, short
unsigned int, char *, short unsigned int, short unsigned int, char *)'
librmdb.exx(966): warning: argument of negative value `-1' to `short
unsigned int'
What am I doing wrong? Does somebody know a solution how to avoid this
warning?
Regards
Toni
I have a problem when compiling c++ code generated by gpre.
Following statement are embedded in my code:
EXEC SQL DECLARE SELECT_ALL_RECORDS CURSOR FOR
SELECT * FROM MY_TABLE;
EXEC SQL
OPEN SELECT_ALL_RECORDS;
and I recieve following warning from gcc version 2.96 20000731 (Red Hat
Linux 7.1 2.96-81):
librmdb.exx(966): warning: passing negative value `-1' for argument
passing 6 of `isc_dsql_execute_m (long int *, void **, void **, short
unsigned int, char *, short unsigned int, short unsigned int, char *)'
librmdb.exx(966): warning: argument of negative value `-1' to `short
unsigned int'
What am I doing wrong? Does somebody know a solution how to avoid this
warning?
Regards
Toni