Fixed GCC warnings

This commit is contained in:
John Wellbelove 2016-12-28 12:58:09 +00:00
parent 1aa2592691
commit fbf7eaf085

View File

@ -36,6 +36,11 @@ SOFTWARE.
#include "../src/pool.h"
#if defined(ETL_COMPILER_GCC)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunused-but-set-variable"
#endif
typedef TestDataDC<std::string> Test_Data;
typedef TestDataNDC<std::string> Test_Data2;
@ -145,7 +150,7 @@ namespace
TEST(test_available)
{
etl::pool<Test_Data, 4> pool;
CHECK_EQUAL(4, pool.available());
CHECK_EQUAL(4U, pool.available());
Test_Data* p;
@ -385,3 +390,7 @@ namespace
}
};
}
#if defined(ETL_COMPILER_GCC)
#pragma GCC diagnostic pop
#endif