mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2026-03-04 01:40:46 -05:00
Get rid of some unused-function compiler warnings
This commit is contained in:
parent
3f6eb652cb
commit
53695b83dc
5 changed files with 11 additions and 5 deletions
|
|
@ -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..*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue