From e5f893708258a216073a9b6c4e90ecffe2ca249d Mon Sep 17 00:00:00 2001 From: jules Date: Fri, 12 Jul 2019 17:09:42 +0100 Subject: [PATCH] Workaround for VS warning --- modules/juce_core/javascript/juce_JSON.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/juce_core/javascript/juce_JSON.cpp b/modules/juce_core/javascript/juce_JSON.cpp index c295285470..b083742974 100644 --- a/modules/juce_core/javascript/juce_JSON.cpp +++ b/modules/juce_core/javascript/juce_JSON.cpp @@ -38,7 +38,7 @@ struct JSONParser Result getResult() const { return Result::fail (getDescription()); } }; - void throwError (juce::String message, String::CharPointerType location) + [[noreturn]] void throwError (juce::String message, String::CharPointerType location) { ErrorException e; e.message = std::move (message); @@ -182,7 +182,6 @@ struct JSONParser } throwError ("Syntax error", originalLocation); - return {}; } var parseNumber (bool isNegative)