1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-10 00:23:32 +02:00

fixed "unknown pragma" warnings for GCC

This commit is contained in:
andheh
2018-02-15 13:31:50 +01:00
committed by James Crook
parent 9bfbc907a9
commit 1bc7943560
3 changed files with 24 additions and 2 deletions

View File

@@ -2,7 +2,16 @@
// Indirectly include Allegro header so that we can disable warnings about unused parameters
// when compiling Audacity itself.
#ifdef _MSC_VER
// If this is compiled with MSVC (Visual Studio)
#pragma warning( push )
#pragma warning( disable : 4100)
#include "../portsmf/allegro.h"
#pragma warning( pop )
#pragma warning( pop )
#else //_MSC_VER
#include "../portsmf/allegro.h"
#endif //_MSC_VER

View File

@@ -2,7 +2,15 @@
// Indirectly include SBSMS header so that we can disable warnings about unused parameters
// when compiling Audacity itself.
#ifdef _MSC_VER
// If this is compiled with MSVC (Visual Studio)
#pragma warning( push )
#pragma warning( disable : 4100)
#include "../sbsms/include/sbsms.h"
#pragma warning( pop )
#pragma warning( pop )
#else //_MSC_VER
#include "../sbsms/include/sbsms.h"
#endif //_MSC_VER