Added functions prototypes to suppress some warnings.
authorGuilherme Maciel Ferreira <guilherme.maciel.ferreira@gmail.com>
Sat, 18 Feb 2012 01:06:25 +0000 (23:06 -0200)
committerGuilherme Maciel Ferreira <guilherme.maciel.ferreira@gmail.com>
Sat, 18 Feb 2012 01:06:25 +0000 (23:06 -0200)
test/test_configurationoptions.cpp
test/test_messagepayload.cpp

index c7dd972..f4343b0 100644 (file)
@@ -37,6 +37,23 @@ typedef boost::shared_ptr<boost::program_options::option_description> option_des
 bool option_present(
         const std::vector< option_description_item > &options,
         const std::string &option_to_find
+);
+void option_insert(
+        const std::string &key,
+        const boost::any &value,
+        boost::program_options::variables_map &vm
+);
+void option_clear_and_insert(
+        const std::string &key,
+        const boost::any &value,
+        boost::program_options::variables_map &vm
+);
+
+//------------------------------------------------------------------------------
+
+bool option_present(
+        const std::vector< option_description_item > &options,
+        const std::string &option_to_find
 )
 {
     std::vector< option_description_item >::const_iterator first = options.begin();
index 9cf1c28..fb05edf 100644 (file)
@@ -27,6 +27,17 @@ on this file might be covered by the GNU General Public License.
 
 #include "host/messagepayload.h"
 
+//------------------------------------------------------------------------------
+
+MessagePayload create_message_payload( const std::size_t bytes_total );
+void fill_message_payload(
+        const std::size_t bytes_total,
+        const uint8_t first_value,
+        MessagePayload& mp
+);
+
+//------------------------------------------------------------------------------
+
 MessagePayload create_message_payload( const std::size_t bytes_total )
 {
     return MessagePayload( bytes_total );
@@ -44,6 +55,8 @@ void fill_message_payload(
     }
 }
 
+//------------------------------------------------------------------------------
+
 BOOST_AUTO_TEST_SUITE( TestMessagePayload )
 
 BOOST_AUTO_TEST_CASE( basic_assignment )