deal with some gcc7+ warnings

This commit is contained in:
notaz
2019-12-07 21:40:24 +02:00
committed by kub
parent cf47bf1255
commit 67b5cb3132
2 changed files with 8 additions and 0 deletions

View File

@@ -15,6 +15,10 @@
#include "file_stream_transforms.h"
#endif
#if defined(__GNUC__) && __GNUC__ >= 7
#pragma GCC diagnostic ignored "-Wformat-truncation"
#endif
static int handle_mp3(const char *fname, int index)
{
track_t *track = &cdd.toc.tracks[index];

View File

@@ -32,6 +32,10 @@
#include "file_stream_transforms.h"
#endif
#if defined(__GNUC__) && __GNUC__ >= 7
#pragma GCC diagnostic ignored "-Wformat-truncation"
#endif
#ifndef _WIN32
#define PATH_SEP "/"
#define PATH_SEP_C '/'