Remove more causes of warnings at -Wextra levels
This commit is contained in:
+2
-1
@@ -44,7 +44,8 @@ static int fd = -1;
|
||||
char *pipename = NULL;
|
||||
int warned = 0;
|
||||
|
||||
static void start(int sample_rate, int sample_format) {
|
||||
static void start(__attribute__((unused)) int sample_rate,
|
||||
__attribute__((unused)) int sample_format) {
|
||||
// this will leave fd as -1 if a reader hasn't been attached
|
||||
fd = open(pipename, O_WRONLY | O_NONBLOCK);
|
||||
if ((fd < -1) && (warned == 0)) {
|
||||
|
||||
Reference in New Issue
Block a user