Get rid of some unused-function compiler warnings

This commit is contained in:
Maarten Bosmans 2011-03-02 12:41:23 +01:00 committed by Colin Guthrie
parent 3f6eb652cb
commit 53695b83dc
5 changed files with 11 additions and 5 deletions

View file

@ -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..*/

View file

@ -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;

View file

@ -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];