https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=88e2f2aad115f9dc59e336d3d176ab88161db9e3
commit 88e2f2aad115f9dc59e336d3d176ab88161db9e3 Author: Corinna Vinschen <[email protected]> Date: Mon Aug 22 14:50:54 2022 +0200 Cygwin: posix_timer: fix formatting Signed-off-by: Corinna Vinschen <[email protected]> Diff: --- winsup/cygwin/posix_timer.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; \ })
