You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2005/11/01 22:18:31 UTC
DO NOT REPLY [Bug 37325] New: -
Questionable cast in apr_dbd.c does not compile with Borland C++
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: bugs@httpd.apache.org
ReportedBy: carnold@apache.org
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: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org