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.
This commit is contained in:
Gregory A Lundberg 2017-11-02 10:21:11 -05:00
parent 052afd4ce8
commit 23b98e2827

View file

@ -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;