THRIFT-3260 multiple warnings in c_glib tutorial
Client: c_glib
Patch: Simon South <ssouth@simonsouth.com>
This closes #572
Tutorial:
- Silence unused-function warnings
- Remove spurious ";" from GObject type macro
Compiler:
- Suppress unused-var warnings in client initializers
- Omit spurious ";" after GObject type macros
diff --git a/tutorial/c_glib/Makefile.am b/tutorial/c_glib/Makefile.am
index 1862f1b..565f635 100755
--- a/tutorial/c_glib/Makefile.am
+++ b/tutorial/c_glib/Makefile.am
@@ -46,6 +46,8 @@
libtutorialgencglib_la_LIBADD = \
$(top_builddir)/lib/c_glib/libthrift_c_glib.la
+libtutorialgencglib_la_CFLAGS = \
+ $(AM_CFLAGS) -Wno-unused-function
noinst_PROGRAMS = \
tutorial_server \
diff --git a/tutorial/c_glib/c_glib_server.c b/tutorial/c_glib/c_glib_server.c
index 000d97c..3aa99ec 100644
--- a/tutorial/c_glib/c_glib_server.c
+++ b/tutorial/c_glib/c_glib_server.c
@@ -100,7 +100,7 @@
G_DEFINE_TYPE (TutorialCalculatorHandler,
tutorial_calculator_handler,
- TYPE_CALCULATOR_HANDLER);
+ TYPE_CALCULATOR_HANDLER)
/* Each of a handler's methods accepts at least two parameters: A
pointer to the service-interface implementation (the handler object