From 23b98e2827fb767ba25a238128f00a057e8e0137 Mon Sep 17 00:00:00 2001 From: Gregory A Lundberg Date: Thu, 2 Nov 2017 10:21:11 -0500 Subject: [PATCH] Quell missing declaration warnings This so-called header is actually just splitting a large source file into two files. I would mark these functions static but this is a header; so I'm pre-declaring them in case some other compiler complains about static functions in a header. Hopefully someone in the future will do something about this smelliness. --- src/variable_info_private.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/variable_info_private.hpp b/src/variable_info_private.hpp index c5f8516faf2..da1395f0fef 100644 --- a/src/variable_info_private.hpp +++ b/src/variable_info_private.hpp @@ -34,6 +34,7 @@ auto get_child_range(TConfig& cfg, const std::string& key, int start, int count) return {res.begin() + start, res.begin() + start + count}; } +void resolve_negative_value(int size, int& val); void resolve_negative_value(int size, int& val) { if(val < 0) { @@ -52,6 +53,7 @@ const config non_empty_const_cfg("_"); * Parses a ']' terminated string. * This is a important optimization of lexical_cast_default */ +int parse_index(const char* index_str); int parse_index(const char* index_str) { char* endptr;