i'm compiling a C++ extension and the smart_str macros are causing MSVC to spill warnings about converting void* to char *. Casting the return from the SMART_STR_REALLOC macro seems to fix it.
#ifdef SMART_STR_USE_REALLOC -#define SMART_STR_REALLOC(a,b,c) realloc((a),(b)) +#define SMART_STR_REALLOC(a,b,c) (char *)realloc((a),(b)) #else -#define SMART_STR_REALLOC(a,b,c) perealloc((a),(b),(c)) +#define SMART_STR_REALLOC(a,b,c) (char *)perealloc((a),(b)) #endif --- -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php