summaryrefslogtreecommitdiffstats
path: root/src/pulsecore/shm.c
diff options
context:
space:
mode:
authorMaarten Bosmans <mkbosmans@gmail.com>2011-06-23 22:21:03 +0200
committerColin Guthrie <colin@mageia.org>2011-06-24 00:34:05 +0100
commit5818a2c63e9a52a545b9c8eb6fdbfa24cfee822f (patch)
tree9d3d4c27d9dfedd4d3384e3559d01d673c042290 /src/pulsecore/shm.c
parent3adc43b8fe507e3140f7d6f9bab32584b9eadfa4 (diff)
win32: Make some unused-variable warnings go away
Diffstat (limited to 'src/pulsecore/shm.c')
-rw-r--r--src/pulsecore/shm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/pulsecore/shm.c b/src/pulsecore/shm.c
index da8aff70..442b698e 100644
--- a/src/pulsecore/shm.c
+++ b/src/pulsecore/shm.c
@@ -98,8 +98,10 @@ static char *segment_name(char *fn, size_t l, unsigned id) {
#endif
int pa_shm_create_rw(pa_shm *m, size_t size, pa_bool_t shared, mode_t mode) {
+#ifdef HAVE_SHM_OPEN
char fn[32];
int fd = -1;
+#endif
pa_assert(m);
pa_assert(size > 0);