From bf83c07923c8a6f592876b15be13cbdf7a74b399 Mon Sep 17 00:00:00 2001 From: Christian Prochaska Date: Thu, 9 Feb 2017 15:31:30 +0100 Subject: [PATCH] Genode::retry(): fix compile error with GCC 6 Fixes #2376 --- repos/base/include/util/retry.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repos/base/include/util/retry.h b/repos/base/include/util/retry.h index afbaf2c86..abd62f395 100644 --- a/repos/base/include/util/retry.h +++ b/repos/base/include/util/retry.h @@ -38,7 +38,7 @@ namespace Genode { */ template auto Genode::retry(FUNC func, HANDLER handler, - unsigned attempts = ~0U) -> decltype(func()) + unsigned attempts) -> decltype(func()) { for (unsigned i = 0; attempts == ~0U || i < attempts; i++) try { return func(); }