aboutsummaryrefslogtreecommitdiffstats
path: root/erts
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2018-05-09 19:43:43 +0200
committerLukas Larsson <[email protected]>2018-05-15 10:21:53 +0200
commitfa4fcc2bb54b6e60a9b9379707a5d30403b011ac (patch)
tree219fb24b9d877f246cb8abba554a6847a4f0b407 /erts
parent09b16bc5e833af56c52e1fa9156f13eacf35f26b (diff)
downloadotp-fa4fcc2bb54b6e60a9b9379707a5d30403b011ac.tar.gz
otp-fa4fcc2bb54b6e60a9b9379707a5d30403b011ac.tar.bz2
otp-fa4fcc2bb54b6e60a9b9379707a5d30403b011ac.zip
erts: Fix unused variable warning in unix prim file
Diffstat (limited to 'erts')
-rw-r--r--erts/emulator/nifs/unix/unix_prim_file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/erts/emulator/nifs/unix/unix_prim_file.c b/erts/emulator/nifs/unix/unix_prim_file.c
index 1637f9cb71..2b112dda76 100644
--- a/erts/emulator/nifs/unix/unix_prim_file.c
+++ b/erts/emulator/nifs/unix/unix_prim_file.c
@@ -512,8 +512,8 @@ int efile_sync(efile_data_t *d, int data_only) {
}
int efile_advise(efile_data_t *d, Sint64 offset, Sint64 length, enum efile_advise_t advise) {
- efile_unix_t *u = (efile_unix_t*)d;
#ifdef HAVE_POSIX_FADVISE
+ efile_unix_t *u = (efile_unix_t*)d;
int p_advise;
switch(advise) {