Merge branch 't/old_gcc_fixes'
authorAndre Noll <maan@systemlinux.org>
Sun, 15 Jul 2012 19:57:33 +0000 (21:57 +0200)
committerAndre Noll <maan@systemlinux.org>
Sun, 15 Jul 2012 19:57:33 +0000 (21:57 +0200)
82d304 buffer_tree.h: Fix gcc warning.
5535f6 alsa: Fix gcc warning.

Simple enough and well tested with no regressions found.

NEWS
alsa_write.c
buffer_tree.h

diff --git a/NEWS b/NEWS
index 9a84c33..7fcf7f9 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -11,6 +11,7 @@
        - Documentation improvements.
        - Overhaul of the command_util.sh script.
        - Fixes for some minor problems found by the clang analyzer.
+       - Compiles (almost) without warnings on gcc-3.
 
 ------------------------------------------
 0.4.10 (2012-03-30) "heterogeneous vacuum"
index f50ad6a..8c12c72 100644 (file)
@@ -72,7 +72,7 @@ static int alsa_init(struct private_alsa_write_data *pad,
        snd_pcm_sw_params_t *swparams;
        snd_pcm_uframes_t start_threshold, stop_threshold;
        snd_pcm_uframes_t buffer_size, period_size;
-       snd_output_t *log;
+       snd_output_t *output_log;
        unsigned buffer_time;
        int ret;
        const char *msg;
@@ -163,12 +163,12 @@ static int alsa_init(struct private_alsa_write_data *pad,
        ret = snd_pcm_nonblock(pad->handle, 1);
        if (ret < 0)
                goto fail;
-       ret = snd_output_buffer_open(&log);
+       ret = snd_output_buffer_open(&output_log);
        if (ret == 0) {
                char *buf;
                PARA_INFO_LOG("dumping alsa configuration\n");
-               snd_pcm_dump(pad->handle, log);
-               snd_output_buffer_string(log, &buf);
+               snd_pcm_dump(pad->handle, output_log);
+               snd_output_buffer_string(output_log, &buf);
                for (;;) {
                        char *p = strchr(buf, '\n');
                        if (!p) /* omit last output line, it's empty */
@@ -177,7 +177,7 @@ static int alsa_init(struct private_alsa_write_data *pad,
                        PARA_INFO_LOG("%s\n", buf);
                        buf = p + 1;
                }
-               snd_output_close(log);
+               snd_output_close(output_log);
        }
        return 1;
 fail:
index 4d27ec7..a9890b9 100644 (file)
@@ -196,7 +196,7 @@ void btr_splice_out_node(struct btr_node *btrn);
 void btr_pushdown(struct btr_node *btrn);
 void *btr_context(struct btr_node *btrn);
 void btr_merge(struct btr_node *btrn, size_t dest_size);
-void btr_log_tree(struct btr_node *btrn, int loglevel);
+void btr_log_tree(struct btr_node *btrn, int ll);
 void btr_pushdown_one(struct btr_node *btrn);
 bool btr_inplace_ok(struct btr_node *btrn);
 int btr_node_status(struct btr_node *btrn, size_t min_iqs,