[glibmm] Omit unused parameter names to avoid warning



commit ebe9876bbfbd6abbd1fd1f901aa224b5ca2a8ab2
Author: Daniel Elstner <daniel kitta gmail com>
Date:   Sun Jun 21 15:14:49 2009 +0200

    Omit unused parameter names to avoid warning
    
    * tools/extra_defs_gen/generate_defs_gio.cc (main): Omit names of
    unused function parameters, to fix the build with fatal warnings
    enabled.
    * examples/properties/properties_example.cc (main): ditto,
    * tests/giomm_ioerror/main.cc (main): ditto.

 examples/properties/properties_example.cc |    2 +-
 tests/giomm_ioerror/main.cc               |    2 +-
 tools/extra_defs_gen/generate_defs_gio.cc |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/examples/properties/properties_example.cc b/examples/properties/properties_example.cc
index b4c0327..82ad4ae 100644
--- a/examples/properties/properties_example.cc
+++ b/examples/properties/properties_example.cc
@@ -57,7 +57,7 @@ void on_lastname_changed ()
 void on_age_changed ()
 { std::cout << "- age changed!" << std::endl; }
 
-int main (int argc, char** argv)
+int main(int, char**)
 {
     Glib::init ();
     Person p;
diff --git a/tests/giomm_ioerror/main.cc b/tests/giomm_ioerror/main.cc
index 683b534..d5684ac 100644
--- a/tests/giomm_ioerror/main.cc
+++ b/tests/giomm_ioerror/main.cc
@@ -14,7 +14,7 @@
 #error Forgot to #undef GIOMM_SAVED_HOST_NOT_FOUND
 #endif
 
-int main(int argc, char** argv)
+int main(int, char**)
 {
   Glib::init();
   Gio::init();
diff --git a/tools/extra_defs_gen/generate_defs_gio.cc b/tools/extra_defs_gen/generate_defs_gio.cc
index 90b4388..d79a877 100644
--- a/tools/extra_defs_gen/generate_defs_gio.cc
+++ b/tools/extra_defs_gen/generate_defs_gio.cc
@@ -26,7 +26,7 @@
 # include <gio/gunixoutputstream.h>
 #endif
 
-int main (int argc, char** argv)
+int main(int, char**)
 {
   g_type_init ();
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]