Mercurial > hg > piper-cpp
comparison vamp-server/simple-server.cpp @ 141:c3ddc4a72561
Fix compiler warning
author | Chris Cannam <c.cannam@qmul.ac.uk> |
---|---|
date | Mon, 16 Jan 2017 14:31:23 +0000 |
parents | 807a0a43096e |
children | 80d85794d8cd |
comparison
equal
deleted
inserted
replaced
140:807a0a43096e | 141:c3ddc4a72561 |
---|---|
132 } | 132 } |
133 } | 133 } |
134 normalFd = _dup(1); | 134 normalFd = _dup(1); |
135 suspendedFd = _open("NUL", _O_WRONLY); | 135 suspendedFd = _open("NUL", _O_WRONLY); |
136 #else | 136 #else |
137 (void)binary; | |
137 normalFd = dup(1); | 138 normalFd = dup(1); |
138 suspendedFd = open("/dev/null", O_WRONLY); | 139 suspendedFd = open("/dev/null", O_WRONLY); |
139 #endif | 140 #endif |
140 | 141 |
141 if (normalFd < 0 || suspendedFd < 0) { | 142 if (normalFd < 0 || suspendedFd < 0) { |