chore(gcc): remove some warning from the compiler

pull/37/head
Guenael 2021-12-03 23:47:09 -05:00
rodzic f1d1556d36
commit c29724aee2
2 zmienionych plików z 8 dodań i 0 usunięć

Wyświetl plik

@ -46,6 +46,10 @@
#include "wsprd/wsprd.h"
/* snprintf possible truncation allowed to prevent possible buffer overflow */
#pragma GCC diagnostic ignored "-Wformat-truncation"
/* Sampling definition for RTL devices */
#define SIGNAL_LENGHT 116
#define SIGNAL_SAMPLE_RATE 375

Wyświetl plik

@ -35,6 +35,10 @@
#include "./nhash.h"
#include "./wsprd_utils.h"
// FIXME -- Replace strcpy & strncpy by strcpy to prevent possible buffer overflow
#pragma GCC diagnostic ignored "-Wstringop-overflow"
#pragma GCC diagnostic ignored "-Wstringop-truncation"
void unpack50(signed char *dat, int32_t *n1, int32_t *n2) {
int32_t i, i4;