DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=37325>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ· INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=37325 Summary: Questionable cast in apr_dbd.c does not compile with Borland C++ Product: APR Version: HEAD Platform: Other OS/Version: other Status: NEW Severity: normal Priority: P2 Component: APR-util AssignedTo: [email protected] ReportedBy: [EMAIL PROTECTED] apr_dbd.c calls apr_pool_cleanup_register and apr_pool_cleanup_kill with callback functions that do not match the function prototype. The current code uses an explicit cast to void* and some compilers then do an implicit cast to the proper type for the callback function. However, for example, Borland C++ will fail to do the implicit cast and will report an error that the argument is not compatible with the prototype. Changing the explicit cast from (void*) to (apr_status_t (*)(void*)) should eliminate the issue. Alternatively, the definition of driver->end_transaction could be changed to eliminate the need for a cast. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
