From e1d5bcc94d48341e4382ee5d0733726f0dde1a15 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Tue, 29 Dec 2015 18:55:48 +0100 Subject: [PATCH] =?UTF-8?q?This=20fixes=20a=20=E2=80=9CNo=20previous=20pro?= =?UTF-8?q?totype=20for=20function=E2=80=9D=20warning.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- json11.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/json11.cpp b/json11.cpp index ebd7e93..38fd4c8 100644 --- a/json11.cpp +++ b/json11.cpp @@ -226,12 +226,12 @@ struct Statics { Statics() {} }; -const Statics & statics() { +static const Statics & statics() { static const Statics s {}; return s; } -const Json & static_null() { +static const Json & static_null() { // This has to be separate, not in Statics, because Json() accesses statics().null. static const Json json_null; return json_null;