mirror of https://github.com/stella-emu/stella.git
Make pragmas conditional to clang.
This commit is contained in:
parent
9feb16b0b9
commit
60a6e9a417
|
@ -23,8 +23,10 @@
|
||||||
#include "Variant.hxx"
|
#include "Variant.hxx"
|
||||||
#include "bspf.hxx"
|
#include "bspf.hxx"
|
||||||
|
|
||||||
|
#ifdef __clang__
|
||||||
#pragma clang diagnostic push
|
#pragma clang diagnostic push
|
||||||
#pragma clang diagnostic ignored "-Woverloaded-virtual"
|
#pragma clang diagnostic ignored "-Woverloaded-virtual"
|
||||||
|
#endif
|
||||||
|
|
||||||
class KeyValueRepositoryAtomic;
|
class KeyValueRepositoryAtomic;
|
||||||
|
|
||||||
|
@ -54,6 +56,8 @@ class KeyValueRepositoryAtomic : public KeyValueRepository {
|
||||||
KeyValueRepositoryAtomic* atomic() override { return this; }
|
KeyValueRepositoryAtomic* atomic() override { return this; }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#ifdef __clang__
|
||||||
#pragma clang diagnostic pop
|
#pragma clang diagnostic pop
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif // KEY_VALUE_REPOSITORY_HXX
|
#endif // KEY_VALUE_REPOSITORY_HXX
|
||||||
|
|
|
@ -59,8 +59,10 @@ class SqliteDatabase
|
||||||
// IMPLEMENTATION
|
// IMPLEMENTATION
|
||||||
///////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#ifdef __clang__
|
||||||
#pragma clang diagnostic push
|
#pragma clang diagnostic push
|
||||||
#pragma clang diagnostic ignored "-Wformat-nonliteral"
|
#pragma clang diagnostic ignored "-Wformat-nonliteral"
|
||||||
|
#endif
|
||||||
|
|
||||||
template <class T, class ...Ts>
|
template <class T, class ...Ts>
|
||||||
void SqliteDatabase::exec(const string& sql, T arg1, Ts... args) const
|
void SqliteDatabase::exec(const string& sql, T arg1, Ts... args) const
|
||||||
|
@ -73,6 +75,8 @@ void SqliteDatabase::exec(const string& sql, T arg1, Ts... args) const
|
||||||
exec(buffer);
|
exec(buffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef __clang__
|
||||||
#pragma clang diagnostic pop
|
#pragma clang diagnostic pop
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif // SQLITE_DATABASE_HXX
|
#endif // SQLITE_DATABASE_HXX
|
||||||
|
|
|
@ -67,8 +67,10 @@ class SqliteStatement {
|
||||||
// IMPLEMENTATION
|
// IMPLEMENTATION
|
||||||
///////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#ifdef __clang__
|
||||||
#pragma clang diagnostic push
|
#pragma clang diagnostic push
|
||||||
#pragma clang diagnostic ignored "-Wformat-nonliteral"
|
#pragma clang diagnostic ignored "-Wformat-nonliteral"
|
||||||
|
#endif
|
||||||
|
|
||||||
template<class T, class ...Ts>
|
template<class T, class ...Ts>
|
||||||
SqliteStatement::SqliteStatement(sqlite3* handle, const string& sql, T arg1, Ts... args)
|
SqliteStatement::SqliteStatement(sqlite3* handle, const string& sql, T arg1, Ts... args)
|
||||||
|
@ -82,6 +84,8 @@ SqliteStatement::SqliteStatement(sqlite3* handle, const string& sql, T arg1, Ts.
|
||||||
initialize(buffer);
|
initialize(buffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef __clang__
|
||||||
#pragma clang diagnostic pop
|
#pragma clang diagnostic pop
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif // SQLITE_STATEMENT_HXX
|
#endif // SQLITE_STATEMENT_HXX
|
||||||
|
|
Loading…
Reference in New Issue