From a53df08ff8405c9a34b4397d136f80c2c0e45df6 Mon Sep 17 00:00:00 2001 From: Dmitry Marakasov Date: Tue, 11 Jul 2017 17:47:40 +0300 Subject: [PATCH] Add returns to constexpr tests These are needed since main() is actually replaced with SDL_main() --- tests/test_color_constexpr.cc | 2 ++ tests/test_pointrect_constexpr.cc | 2 ++ 2 files changed, 4 insertions(+) diff --git a/tests/test_color_constexpr.cc b/tests/test_color_constexpr.cc index a672956..0d0a028 100644 --- a/tests/test_color_constexpr.cc +++ b/tests/test_color_constexpr.cc @@ -24,4 +24,6 @@ int main(int, char*[]) { constexpr int a = c1.GetAlpha(); static_assert(r == 0 && g == 0 && b == 0 && a == 0, ""); + + return 0; } diff --git a/tests/test_pointrect_constexpr.cc b/tests/test_pointrect_constexpr.cc index ef2a6a4..179678a 100644 --- a/tests/test_pointrect_constexpr.cc +++ b/tests/test_pointrect_constexpr.cc @@ -77,4 +77,6 @@ int main(int, char*[]) { static_assert(b3 && b4 && b5 && b6, ""); } + + return 0; }