Summary: | ASTERISK-04961: [patch] avoid warning in res_odbc.c | ||
Reporter: | Andrey S Pankov (casper) | Labels: | |
Date Opened: | 2005-09-01 11:52:22 | Date Closed: | 2008-01-15 15:47:02.000-0600 |
Priority: | Minor | Regression? | No |
Status: | Closed/Complete | Components: | Core/General |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ( 0) res_odbc.c.diff | |
Description: | To avoid the warning res_odbc.c: In function `odbc_obj_connect': res_odbc.c:481: warning: passing arg 5 of `SQLGetDiagRec' from incompatible pointer type ****** ADDITIONAL INFORMATION ****** Disclaimer is on file at Digium | ||
Comments: | By: Kevin P. Fleming (kpfleming) 2005-09-01 17:58:18 Try this patch on a 64-bit machine... you will still get warnings. The API for that function is not consistent, and either 32-bit or 64-bit will generate a warning. By: Michael Jerris (mikej) 2005-09-01 21:23:53 an ifdef'ed define should be able to address that, no? By: Kevin P. Fleming (kpfleming) 2005-09-02 15:28:34 Committed to CVS HEAD, thanks! By: Digium Subversion (svnbot) 2008-01-15 15:47:02.000-0600 Repository: asterisk Revision: 6511 U trunk/res/res_odbc.c ------------------------------------------------------------------------ r6511 | kpfleming | 2008-01-15 15:47:01 -0600 (Tue, 15 Jan 2008) | 2 lines eliminate compiler warning (issue ASTERISK-4961) ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk?view=rev&revision=6511 |