Warning fixes (#658)

* Suppress expected, benign warnings from Bison and Flex generated code.

* Trick::MessageThreadedCout::thread_body should return NULL.
This commit is contained in:
jmpenn 2018-08-16 16:02:11 -05:00 committed by GitHub
parent 8f5123e480
commit 7b694931ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 13 additions and 0 deletions

View File

@ -18,6 +18,10 @@
#include "trick/ADefParseContext.hh"
#include "adef_parser.tab.h"
#pragma GCC diagnostic ignored "-Wunused-parameter"
#pragma GCC diagnostic ignored "-Wsign-compare"
#pragma GCC diagnostic ignored "-Wunused-function"
#define YY_EXTRA_TYPE Trick::ADefParseContext*
#define YY_USER_ACTION yylloc->first_line = yylineno;

View File

@ -21,6 +21,8 @@
#include "trick/ADefParseContext.hh"
#include "adef_parser.tab.h"
#pragma GCC diagnostic ignored "-Wunused-parameter"
using namespace std;
int ADEF_lex( YYSTYPE* lvalp, YYLTYPE* llocp, void* scanner );

View File

@ -19,6 +19,10 @@
#include "trick/RefParseContext.hh"
#include "ref_parser.tab.h"
#pragma GCC diagnostic ignored "-Wunused-parameter"
#pragma GCC diagnostic ignored "-Wsign-compare"
#pragma GCC diagnostic ignored "-Wunused-function"
#define YY_EXTRA_TYPE RefParseContext*
#define YY_USER_ACTION yylloc->first_line = yylineno;

View File

@ -21,6 +21,8 @@
#include "trick/var.h"
#include "ref_parser.tab.h"
#pragma GCC diagnostic ignored "-Wunused-parameter"
using namespace std;
int REF_lex( YYSTYPE* lvalp, YYLTYPE* llocp, void* scanner );

View File

@ -74,6 +74,7 @@ void * Trick::MessageThreadedCout::thread_body() {
write_pending_messages() ;
RELEASE() ;
}
return (void*)0;
}
void Trick::MessageThreadedCout::write_pending_messages() {