aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator
diff options
context:
space:
mode:
authorBjörn-Egil Dahlberg <[email protected]>2011-11-07 15:47:26 +0100
committerBjörn-Egil Dahlberg <[email protected]>2011-11-07 16:07:00 +0100
commit4ceec9775e33de5587ed31b3c1902825ad0a0996 (patch)
treed50d75ae95f3bb9d2cd2a426c8f9e224552900e2 /erts/emulator
parent5e8fa1d015f87dcbf2e6b84d5cc4161478851f41 (diff)
downloadotp-4ceec9775e33de5587ed31b3c1902825ad0a0996.tar.gz
otp-4ceec9775e33de5587ed31b3c1902825ad0a0996.tar.bz2
otp-4ceec9775e33de5587ed31b3c1902825ad0a0996.zip
erts: Remove dead code in efile_drv
Diffstat (limited to 'erts/emulator')
-rw-r--r--erts/emulator/drivers/common/efile_drv.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/erts/emulator/drivers/common/efile_drv.c b/erts/emulator/drivers/common/efile_drv.c
index 68987b3493..52f1b5312b 100644
--- a/erts/emulator/drivers/common/efile_drv.c
+++ b/erts/emulator/drivers/common/efile_drv.c
@@ -2493,13 +2493,20 @@ file_flush(ErlDrvData e) {
static int
file_control(ErlDrvData e, unsigned int command,
char* buf, int len, char **rbuf, int rlen) {
+ /*
+ * warning: variable ‘desc’ set but not used
+ * [-Wunused-but-set-variable]
+ * ... no kidding ...
+ *
+ *
file_descriptor *desc = (file_descriptor *)e;
switch (command) {
default:
return 0;
- } /* switch (command) */
+ }
ASSERT(0);
- desc = NULL; /* XXX Avoid warning while empty switch */
+ desc = NULL;
+ */
return 0;
}