diff options
author | Maarten Bosmans <mkbosmans@gmail.com> | 2011-06-23 22:21:03 +0200 |
---|---|---|
committer | Colin Guthrie <colin@mageia.org> | 2011-06-24 00:34:05 +0100 |
commit | 5818a2c63e9a52a545b9c8eb6fdbfa24cfee822f (patch) | |
tree | 9d3d4c27d9dfedd4d3384e3559d01d673c042290 /src/modules | |
parent | 3adc43b8fe507e3140f7d6f9bab32584b9eadfa4 (diff) |
win32: Make some unused-variable warnings go away
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/module-augment-properties.c | 2 | ||||
-rw-r--r-- | src/modules/module-cli.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/modules/module-augment-properties.c b/src/modules/module-augment-properties.c index bfc637aa..05f6f0a4 100644 --- a/src/modules/module-augment-properties.c +++ b/src/modules/module-augment-properties.c @@ -175,10 +175,10 @@ static void update_rule(struct rule *r) { if (stat(fn, &st) == 0) found = TRUE; else { +#ifdef DT_DIR DIR *desktopfiles_dir; struct dirent *dir; -#ifdef DT_DIR /* Let's try a more aggressive search, but only one level */ if ((desktopfiles_dir = opendir(DESKTOPFILEDIR))) { while ((dir = readdir(desktopfiles_dir))) { diff --git a/src/modules/module-cli.c b/src/modules/module-cli.c index 7788a756..2a1d1751 100644 --- a/src/modules/module-cli.c +++ b/src/modules/module-cli.c @@ -72,7 +72,9 @@ int pa__init(pa_module*m) { pa_iochannel *io; pa_modargs *ma; pa_bool_t exit_on_eof = FALSE; +#ifndef OS_IS_WIN32 int fd; +#endif pa_assert(m); |