Skip to content

Commit

Permalink
Quell missing declaration warnings
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
GregoryLundberg committed Nov 30, 2017
1 parent 8d2ee3c commit 44df64e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/variable_info_private.hpp
Expand Up @@ -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) {
Expand All @@ -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;
Expand Down

0 comments on commit 44df64e

Please sign in to comment.