Fix compile warnings on Mac.

This commit is contained in:
wb2osz 2020-10-25 21:35:19 -04:00
parent 3a5f72acab
commit 3960942488
4 changed files with 5 additions and 4 deletions

View File

@ -49,7 +49,7 @@
#include <stdio.h> #include <stdio.h>
#include <ctype.h> /* for isdigit, isupper */ #include <ctype.h> /* for isdigit, isupper */
#include "regex.h" #include "regex.h"
#include <sys/unistd.h> #include <unistd.h>
#include "ax25_pad.h" #include "ax25_pad.h"
#include "cdigipeater.h" #include "cdigipeater.h"

View File

@ -129,7 +129,8 @@ static inline float convolve (const float *__restrict__ data, const float *__res
float sum = 0.0; float sum = 0.0;
int j; int j;
#pragma GCC ivdep //Does pragma make any difference? Annoying warning on Mac.
//#pragma GCC ivdep
for (j=0; j<filter_size; j++) { for (j=0; j<filter_size; j++) {
sum += filter[j] * data[j]; sum += filter[j] * data[j];
} }

View File

@ -62,7 +62,7 @@
#include <stdio.h> #include <stdio.h>
#include <ctype.h> /* for isdigit, isupper */ #include <ctype.h> /* for isdigit, isupper */
#include "regex.h" #include "regex.h"
#include <sys/unistd.h> #include <unistd.h>
#include "ax25_pad.h" #include "ax25_pad.h"
#include "digipeater.h" #include "digipeater.h"

View File

@ -91,7 +91,7 @@
#include <string.h> #include <string.h>
#include <assert.h> #include <assert.h>
#include <stdio.h> #include <stdio.h>
#include <sys/unistd.h> #include <unistd.h>
#include "ax25_pad.h" #include "ax25_pad.h"
#include "textcolor.h" #include "textcolor.h"