Remove more causes of warnings at -Wextra levels

This commit is contained in:
Mike Brady
2018-03-07 22:05:11 +00:00
parent 7970a54b83
commit 0cd8a2ce90
9 changed files with 44 additions and 29 deletions
+2 -1
View File
@@ -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)) {