mirror of
https://github.com/JakubMelka/PDF4QT.git
synced 2025-06-05 21:59:17 +02:00
Issue #22: Fix compilation warnings
This commit is contained in:
@@ -30,6 +30,11 @@
|
||||
|
||||
#include <regex>
|
||||
|
||||
#ifdef PDF4QT_COMPILER_MSVC
|
||||
#pragma warning(push)
|
||||
#pragma warning(disable:4125)
|
||||
#endif
|
||||
|
||||
class LexicalAnalyzerTest : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
@@ -1153,6 +1158,10 @@ QString LexicalAnalyzerTest::getStringFromTokens(const std::vector<pdf::PDFLexic
|
||||
return QString("{ %1 }").arg(stringTokens.join(", "));
|
||||
}
|
||||
|
||||
#ifdef PDF4QT_COMPILER_MSVC
|
||||
#pragma warning(pop)
|
||||
#endif
|
||||
|
||||
QTEST_APPLESS_MAIN(LexicalAnalyzerTest)
|
||||
|
||||
#include "tst_lexicalanalyzertest.moc"
|
||||
|
Reference in New Issue
Block a user