From c520b4fa0fbbcdf69fd951d116b317c574f6f0e1 Mon Sep 17 00:00:00 2001 From: Phil Willoughby Date: Sun, 27 Nov 2016 09:41:10 -0800 Subject: [PATCH] Fix termination output on GCC Summary: Thanks nbronson for suggesting this fix. I don't see why this should make any difference (and nor does clang) but the important thing is that it works now. Reviewed By: nbronson Differential Revision: D4212670 fbshipit-source-id: 08b4313d736f237039a807fbc458d4d581a2ef35 --- folly/ScopeGuard.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/folly/ScopeGuard.h b/folly/ScopeGuard.h index f56b2760..26531cd8 100644 --- a/folly/ScopeGuard.h +++ b/folly/ScopeGuard.h @@ -78,7 +78,7 @@ class ScopeGuardImplBase { template FOLLY_ALWAYS_INLINE static void runAndWarnAboutToCrashOnException( - T& function) { + T& function) noexcept { try { function(); } catch (...) { -- 2.34.1