diff options
author | Maarten Bosmans <mkbosmans@gmail.com> | 2011-03-02 12:41:23 +0100 |
---|---|---|
committer | Colin Guthrie <cguthrie@mandriva.org> | 2011-03-02 14:52:46 +0000 |
commit | 53695b83dcd15df981b131b2cdd927d9f984a966 (patch) | |
tree | 3ff0dcd2c1b6874350c69fec8d08509c90e0dff7 /src/pulsecore | |
parent | 3f6eb652cba802227f292c207ba9f00a2e4321d7 (diff) |
Get rid of some unused-function compiler warnings
Diffstat (limited to 'src/pulsecore')
-rw-r--r-- | src/pulsecore/core-util.c | 4 | ||||
-rw-r--r-- | src/pulsecore/memtrap.c | 2 | ||||
-rw-r--r-- | src/pulsecore/shm.c | 2 |
3 files changed, 7 insertions, 1 deletions
diff --git a/src/pulsecore/core-util.c b/src/pulsecore/core-util.c index 8a377e37..02e9bf63 100644 --- a/src/pulsecore/core-util.c +++ b/src/pulsecore/core-util.c @@ -620,6 +620,7 @@ char *pa_strlcpy(char *b, const char *s, size_t l) { return b; } +#ifdef _POSIX_PRIORITY_SCHEDULING static int set_scheduler(int rtprio) { #ifdef HAVE_SCHED_H struct sched_param sp; @@ -677,6 +678,7 @@ static int set_scheduler(int rtprio) { return -1; } +#endif /* Make the current thread a realtime thread, and acquire the highest * rtprio we can get that is less or equal the specified parameter. If @@ -713,6 +715,7 @@ int pa_make_realtime(int rtprio) { return -1; } +#ifdef HAVE_SYS_RESOURCE_H static int set_nice(int nice_level) { #ifdef HAVE_DBUS DBusError error; @@ -757,6 +760,7 @@ static int set_nice(int nice_level) { return -1; } +#endif /* Raise the priority of the current process as much as possible that * is <= the specified nice level..*/ diff --git a/src/pulsecore/memtrap.c b/src/pulsecore/memtrap.c index b56d806a..4df1fb71 100644 --- a/src/pulsecore/memtrap.c +++ b/src/pulsecore/memtrap.c @@ -67,11 +67,11 @@ pa_bool_t pa_memtrap_is_good(pa_memtrap *m) { return !pa_atomic_load(&m->bad); } +#ifdef HAVE_SIGACTION static void sigsafe_error(const char *s) { (void) write(STDERR_FILENO, s, strlen(s)); } -#ifdef HAVE_SIGACTION static void signal_handler(int sig, siginfo_t* si, void *data) { unsigned j; pa_memtrap *m; diff --git a/src/pulsecore/shm.c b/src/pulsecore/shm.c index 5d5d85ab..da8aff70 100644 --- a/src/pulsecore/shm.c +++ b/src/pulsecore/shm.c @@ -90,10 +90,12 @@ struct shm_marker { #define SHM_MARKER_SIZE PA_ALIGN(sizeof(struct shm_marker)) +#ifdef HAVE_SHM_OPEN static char *segment_name(char *fn, size_t l, unsigned id) { pa_snprintf(fn, l, "/pulse-shm-%u", id); return fn; } +#endif int pa_shm_create_rw(pa_shm *m, size_t size, pa_bool_t shared, mode_t mode) { char fn[32]; |