Skip to content

Commit 3960942

Browse files
committed
Fix compile warnings on Mac.
1 parent 3a5f72a commit 3960942

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

src/cdigipeater.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
#include <stdio.h>
5050
#include <ctype.h> /* for isdigit, isupper */
5151
#include "regex.h"
52-
#include <sys/unistd.h>
52+
#include <unistd.h>
5353

5454
#include "ax25_pad.h"
5555
#include "cdigipeater.h"

src/demod_psk.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,8 @@ static inline float convolve (const float *__restrict__ data, const float *__res
129129
float sum = 0.0;
130130
int j;
131131

132-
#pragma GCC ivdep
132+
//Does pragma make any difference? Annoying warning on Mac.
133+
//#pragma GCC ivdep
133134
for (j=0; j<filter_size; j++) {
134135
sum += filter[j] * data[j];
135136
}

src/digipeater.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
#include <stdio.h>
6363
#include <ctype.h> /* for isdigit, isupper */
6464
#include "regex.h"
65-
#include <sys/unistd.h>
65+
#include <unistd.h>
6666

6767
#include "ax25_pad.h"
6868
#include "digipeater.h"

src/multi_modem.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
#include <string.h>
9292
#include <assert.h>
9393
#include <stdio.h>
94-
#include <sys/unistd.h>
94+
#include <unistd.h>
9595

9696
#include "ax25_pad.h"
9797
#include "textcolor.h"

0 commit comments

Comments
 (0)