summaryrefslogtreecommitdiff
path: root/rts
diff options
context:
space:
mode:
authorDuncan Coutts <duncan@well-typed.com>2011-10-31 23:01:36 +0000
committerDuncan Coutts <duncan@well-typed.com>2011-10-31 23:01:36 +0000
commit3955077fd55d8190da6c26ffa750b473831755ce (patch)
tree65f991690dd5db08de809758826d4e0ae5509b6b /rts
parentd518e8f1a6f111575aba37bb0b0ba00168ad7fcd (diff)
downloadhaskell-3955077fd55d8190da6c26ffa750b473831755ce.tar.gz
Fix unused var warning on windows
Diffstat (limited to 'rts')
-rw-r--r--rts/RtsFlags.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/rts/RtsFlags.c b/rts/RtsFlags.c
index bd2bf6748d..7009ea23a6 100644
--- a/rts/RtsFlags.c
+++ b/rts/RtsFlags.c
@@ -536,16 +536,16 @@ void setupRtsFlags (int *argc, char *argv[])
static void checkSuid(RtsOptsEnabledEnum enabled)
{
-#if defined(HAVE_UNISTD_H) && defined(HAVE_SYS_TYPES_H) && !defined(mingw32_HOST_OS)
if (enabled == RtsOptsSafeOnly) {
+#if defined(HAVE_UNISTD_H) && defined(HAVE_SYS_TYPES_H) && !defined(mingw32_HOST_OS)
/* This doesn't cover linux/posix capabilities like CAP_DAC_OVERRIDE,
we'd have to link with -lcap for that. */
if ((getuid() != geteuid()) || (getgid() != getegid())) {
errorBelch("RTS options are disabled for setuid binaries. Link with -rtsopts to enable them.");
stg_exit(EXIT_FAILURE);
}
- }
#endif
+ }
}
static void checkUnsafe(RtsOptsEnabledEnum enabled)