THRIFT-916: Fix warnings in C++ when compiling with -Wall. In this case, in the flex...
authorChristian Lavoie <clavoie@apache.org>
Sun, 7 Nov 2010 19:42:48 +0000 (19:42 +0000)
committerChristian Lavoie <clavoie@apache.org>
Sun, 7 Nov 2010 19:42:48 +0000 (19:42 +0000)
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1032365 13f79535-47bb-0310-9956-ffa450edef68

compiler/cpp/src/generate/t_c_glib_generator.cc
compiler/cpp/src/parse/t_base_type.h
compiler/cpp/src/thriftl.ll

index 223d489..a569ae6 100644 (file)
@@ -2981,6 +2981,4 @@ initial_caps_to_underscores (string name)
 }
 
 /* register this generator with the main program */
-THRIFT_REGISTER_GENERATOR(c_glib, "C, using GLib", "");
-
-
+THRIFT_REGISTER_GENERATOR(c_glib, "C, using GLib", "")
index 1751df9..d76772b 100644 (file)
@@ -84,7 +84,7 @@ class t_base_type : public t_type {
   }
 
   void set_string_enum(bool val) {
-    string_enum_ = true;
+    string_enum_ = val;
   }
 
   bool is_string_enum() const {
index b8c36c3..17ac818 100644 (file)
@@ -60,6 +60,11 @@ void integer_overflow(char* text) {
  */
 %option noyywrap
 
+/**
+ * We don't use it, and it fires up warnings at -Wall
+ */
+%option nounput
+
 /**
  * Helper definitions, comments, constants, and whatnot
  */