>From 7ecde046c312a2ceaab46a4858961d04c33efa35 Mon Sep 17 00:00:00 2001 From: Lukas Slebodnik Date: Sat, 11 Jan 2014 15:18:40 +0100 Subject: [PATCH 3/7] INI: Fix warning missing-prototypes for some functions. Experimental functions are not declared in public header files, but we want to suppress warnings missing-prototypes. We also want to suppress warnings missing-prototypes for function from old interface (ini_config.h), which are in the module ini_print.c; because we don't want to include header file with old interface(ini_config.h) and new interface(ini_configobj.h) into the same implementation module. --- ini/ini_print.c | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/ini/ini_print.c b/ini/ini_print.c index c27bfa2d3b884734182d8c649c0c8884e31df844..6289e03336b1e20c9e89ac9ef8cff0f7cdcf27ac 100644 --- a/ini/ini_print.c +++ b/ini/ini_print.c @@ -32,6 +32,18 @@ #include "ini_config_priv.h" #include "ini_configobj.h" +/* Following declarations are from header file ini_config.h. This file was not + * included, because we don't want on include header file + * with old interface(ini_config.h) and new interface(ini_configobj.h) + * into the one file. + */ +void print_config_parsing_errors(FILE *file, + struct collection_item *error_set); + + +void print_file_parsing_errors(FILE *file, + struct collection_item *error_list); + /*============================================================*/ /* The following classes moved here from the public header @@ -338,11 +350,13 @@ void print_file_parsing_errors(FILE *file, } +void print_grammar_errors(FILE *file, + struct collection_item *error_list); /* Print errors and warnings that were detected while processing grammar. * * The following doxygen description is moved here. * When the function gets exposed move it into - * the header file. + * the header file and remove prototype from this file. */ /** * @brief Print errors and warnings that were detected while @@ -367,11 +381,13 @@ void print_grammar_errors(FILE *file, INI_FAMILY_GRAMMAR); } +void print_validation_errors(FILE *file, + struct collection_item *error_list); /* Print errors and warnings that were detected while validating INI file. * * The following doxygen description is moved here. * When the function gets exposed move it into - * the header file. + * the header file and remove prototype from this file. */ /** * @brief Print errors and warnings that were detected while -- 1.8.5.3