about summary refs log tree commit diff
path: root/sysdeps/mach/hurd
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/mach/hurd')
-rw-r--r--sysdeps/mach/hurd/setitimer.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sysdeps/mach/hurd/setitimer.c b/sysdeps/mach/hurd/setitimer.c
index 4351c5ea99..4f494a4c6e 100644
--- a/sysdeps/mach/hurd/setitimer.c
+++ b/sysdeps/mach/hurd/setitimer.c
@@ -326,6 +326,8 @@ fork_itimer (void)
   it.it_value = it.it_interval;
 
   setitimer_locked (&it, NULL, NULL);
+
+  (void) &fork_itimer;		/* Avoid gcc optimizing out the function.  */
 }
 text_set_element (_hurd_fork_child_hook, fork_itimer);