summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/random.cc
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/random.cc')
-rw-r--r--winsup/cygwin/random.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/random.cc b/winsup/cygwin/random.cc
index 037990880..fe1ac08fd 100644
--- a/winsup/cygwin/random.cc
+++ b/winsup/cygwin/random.cc
@@ -280,7 +280,7 @@ srandom(unsigned x)
/* Avoid a compiler warning when we really want to get at the junk in
an uninitialized variable. */
static unsigned long
-dummy (unsigned long *x)
+dummy (unsigned volatile long *x)
{
return *x;
}