THRIFT-2902 Generated c_glib code does not compile with clang
diff --git a/compiler/cpp/src/generate/t_c_glib_generator.cc b/compiler/cpp/src/generate/t_c_glib_generator.cc
index a97267e..c658b4c 100644
--- a/compiler/cpp/src/generate/t_c_glib_generator.cc
+++ b/compiler/cpp/src/generate/t_c_glib_generator.cc
@@ -1804,8 +1804,8 @@
 
     indent(f_service_) << function_signature(&implementing_function) << endl;
     scope_up(f_service_);
-    f_service_ << indent() << "g_return_if_fail (" << this->nspace_uc << "IS_" << service_name_uc
-               << "_HANDLER (iface));" << endl << endl << indent() << class_name_uc
+    f_service_ << indent() << "g_return_val_if_fail (" << this->nspace_uc << "IS_" << service_name_uc
+               << "_HANDLER (iface), 0);" << endl << endl << indent() << class_name_uc
                << "_GET_CLASS (iface)"
                << "->" << method_name << " (iface, ";