From: Phil Willoughby Date: Sun, 27 Nov 2016 17:41:10 +0000 (-0800) Subject: Fix termination output on GCC X-Git-Tag: v2016.11.28.00~1 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=c520b4fa0fbbcdf69fd951d116b317c574f6f0e1;p=folly.git 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 --- 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 (...) {