diff --git a/winsup/cygwin/posix_timer.cc b/winsup/cygwin/posix_timer.cc index 69c758aa7..9d832f201 100644 --- a/winsup/cygwin/posix_timer.cc +++ b/winsup/cygwin/posix_timer.cc @@ -404,7 +404,7 @@ timer_tracker::settime (int flags, const itimerspec *new_value, leaking of timer ids into the child process. */ #define cnew(name, ...) \ ({ \ - void* ptr = (void*) HeapAlloc (GetProcessHeap (), 0, sizeof (name)); \ + void *ptr = (void *) HeapAlloc (GetProcessHeap (), 0, sizeof (name)); \ ptr ? new (ptr) name (__VA_ARGS__) : NULL; \ })