[pulseaudio-commits] [SCM] PulseAudio Sound Server branch, master, updated. v0.9.15-test8-35-gca9cd14

Lennart Poettering gitmailer-noreply at 0pointer.de
Mon Apr 13 16:45:15 PDT 2009


This is an automated email from the git hooks/post-receive script. It was
generated because of a push to the "PulseAudio Sound Server" repository.

The master branch has been updated
      from  845b312f4499eefe10a2be163ed8b5bc226b971d (commit)

- Log -----------------------------------------------------------------
ca9cd14 add a few missing initializations
40d71e1 explcitly ignore return values of some functions marked with gcc's warn_unused_result attribute
-----------------------------------------------------------------------

Summary of changes:
 src/daemon/cpulimit.c                       |    2 +-
 src/modules/module-default-device-restore.c |    4 ++--
 src/modules/udev-util.c                     |    4 ++--
 src/tests/alsa-time-test.c                  |    2 +-
 src/tests/mainloop-test.c                   |    2 +-
 5 files changed, 7 insertions(+), 7 deletions(-)

-----------------------------------------------------------------------

commit 40d71e1f4914e021f321425a37825933b595a860
Author: Lennart Poettering <lennart at poettering.net>
Date:   Tue Apr 14 01:22:42 2009 +0200

    explcitly ignore return values of some functions marked with gcc's warn_unused_result attribute

diff --git a/src/daemon/cpulimit.c b/src/daemon/cpulimit.c
index 64728e2..45d6a0f 100644
--- a/src/daemon/cpulimit.c
+++ b/src/daemon/cpulimit.c
@@ -139,7 +139,7 @@ static void signal_handler(int sig) {
             write_err("Soft CPU time limit exhausted, terminating.\n");
 
             /* Try a soft cleanup */
-            write(the_pipe[1], &c, sizeof(c));
+            (void) write(the_pipe[1], &c, sizeof(c));
             phase = PHASE_SOFT;
             reset_cpu_time(CPUTIME_INTERVAL_HARD);
 
diff --git a/src/modules/module-default-device-restore.c b/src/modules/module-default-device-restore.c
index a25aafc..0092d1c 100644
--- a/src/modules/module-default-device-restore.c
+++ b/src/modules/module-default-device-restore.c
@@ -63,7 +63,7 @@ static void load(struct userdata *u) {
         char ln[256] = "";
         pa_sink *s;
 
-        fgets(ln, sizeof(ln)-1, f);
+        (void) fgets(ln, sizeof(ln)-1, f);
         pa_strip_nl(ln);
         fclose(f);
 
@@ -84,7 +84,7 @@ static void load(struct userdata *u) {
         char ln[256] = "";
         pa_source *s;
 
-        fgets(ln, sizeof(ln)-1, f);
+        (void) fgets(ln, sizeof(ln)-1, f);
         pa_strip_nl(ln);
         fclose(f);
 
diff --git a/src/tests/mainloop-test.c b/src/tests/mainloop-test.c
index d892623..4ca6351 100644
--- a/src/tests/mainloop-test.c
+++ b/src/tests/mainloop-test.c
@@ -46,7 +46,7 @@ static pa_defer_event *de;
 
 static void iocb(pa_mainloop_api*a, pa_io_event *e, int fd, pa_io_event_flags_t f, void *userdata) {
     unsigned char c;
-    read(fd, &c, sizeof(c));
+    (void) read(fd, &c, sizeof(c));
     fprintf(stderr, "IO EVENT: %c\n", c < 32 ? '.' : c);
     a->defer_enable(de, 1);
 }

commit ca9cd1465905df283c56ac8e25b630aeba65273f
Author: Lennart Poettering <lennart at poettering.net>
Date:   Tue Apr 14 01:23:07 2009 +0200

    add a few missing initializations

diff --git a/src/modules/udev-util.c b/src/modules/udev-util.c
index 8ffb76a..144ad79 100644
--- a/src/modules/udev-util.c
+++ b/src/modules/udev-util.c
@@ -61,7 +61,7 @@ static int read_id(struct udev_device *d, const char *n) {
 int pa_udev_get_info(pa_core *core, pa_proplist *p, int card_idx) {
     int r = -1;
     struct udev *udev;
-    struct udev_device *card;
+    struct udev_device *card = NULL;
     char *t;
     const char *v;
     int id;
@@ -89,7 +89,7 @@ int pa_udev_get_info(pa_core *core, pa_proplist *p, int card_idx) {
             pa_proplist_sets(p, PA_PROP_DEVICE_BUS, v);
 
     if (!pa_proplist_contains(p, PA_PROP_DEVICE_VENDOR_ID))
-        if ((id = read_id(card, "ID_VENDOR_ID")) > 0 && *v)
+        if ((id = read_id(card, "ID_VENDOR_ID")) > 0)
             pa_proplist_setf(p, PA_PROP_DEVICE_VENDOR_ID, "%04x", id);
 
     if (!pa_proplist_contains(p, PA_PROP_DEVICE_VENDOR_NAME)) {
diff --git a/src/tests/alsa-time-test.c b/src/tests/alsa-time-test.c
index e852c3f..233bbe6 100644
--- a/src/tests/alsa-time-test.c
+++ b/src/tests/alsa-time-test.c
@@ -23,7 +23,7 @@ int main(int argc, char *argv[]) {
     int dir = 1;
     struct timespec start, last_timestamp = { 0, 0 };
     uint64_t start_us;
-    snd_pcm_sframes_t last_avail, last_delay;
+    snd_pcm_sframes_t last_avail = 0, last_delay = 0;
     struct pollfd *pollfds;
     int n_pollfd;
     int64_t sample_count = 0;

-- 
hooks/post-receive
PulseAudio Sound Server



More information about the pulseaudio-commits mailing list