Fix compiler warnings

This commit is contained in:
Sebastian Messmer 2018-08-08 22:19:20 -04:00
parent 18e5d77b58
commit 847dc893c0
3 changed files with 3 additions and 3 deletions

View File

@ -140,7 +140,7 @@ private:
}
};
constexpr std::array<size_t, 5> SIZES = {0, 1, 1024, 4096, 10*1024*1024};
constexpr std::array<size_t, 5> SIZES = {{0, 1, 1024, 4096, 10*1024*1024}};
#define TYPED_TEST_P_FOR_ALL_SIZES(TestName) \
TYPED_TEST_P(BlockStoreTest, TestName) { \
for (auto size: SIZES) { \

View File

@ -6,7 +6,7 @@
#include <Windows.h>
#endif
int handle_exit_signal(char* argv[]) {
void handle_exit_signal(char* argv[]) {
const std::string kind = argv[1];
if (kind == "exception") {
throw std::logic_error(argv[2]);

View File

@ -63,7 +63,7 @@ public:
TYPED_TEST_CASE_P(CipherTest);
constexpr std::array<unsigned int, 7> SIZES = {0, 1, 100, 1024, 5000, 1048576, 20971520};
constexpr std::array<unsigned int, 7> SIZES = {{0, 1, 100, 1024, 5000, 1048576, 20971520}};
TYPED_TEST_P(CipherTest, Size) {
for (auto size: SIZES) {