Jens Geyer created THRIFT-3260:
----------------------------------

             Summary: multiple warnings in c_glib tutorial
                 Key: THRIFT-3260
                 URL: https://issues.apache.org/jira/browse/THRIFT-3260
             Project: Thrift
          Issue Type: Bug
          Components: C glib - Library
            Reporter: Jens Geyer


{code}
In file included from c_glib_server.c:25:0:
../../lib/c_glib/src/thrift/c_glib/thrift.h:38:8: warning: C++ style comments 
are not allowed in ISO C90 [enabled by default]
 #endif // #ifndef _THRIFT_THRIFT_H
        ^
../../lib/c_glib/src/thrift/c_glib/thrift.h:38:8: warning: (this will be 
reported only once per input file) [enabled by default]
In file included from gen-c_glib/calculator.h:12:0,
                 from c_glib_server.c:34:
gen-c_glib/tutorial_types.h:95:31: warning: comma at end of enumerator list 
[-Wpedantic]
   INVALID_OPERATION_ERROR_CODE,
                               ^
c_glib_server.c:103:40: warning: ISO C does not allow extra ‘;’ outside of a 
function [-Wpedantic]
                TYPE_CALCULATOR_HANDLER);
                                        ^
c_glib_server.c: In function ‘tutorial_calculator_handler_calculate’:
c_glib_server.c:178:3: warning: ISO C90 forbids mixed declarations and code 
[-Wpedantic]
   TutorialCalculatorHandler *self;
   ^
c_glib_server.c: In function ‘tutorial_calculator_handler_get_struct’:
c_glib_server.c:305:3: warning: ISO C90 forbids mixed declarations and code 
[-Wpedantic]
   gint key = (gint)key32;
   ^
{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to