mirror of
https://github.com/nasa/trick.git
synced 2024-12-21 14:07:51 +00:00
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:
parent
8f5123e480
commit
7b694931ef
@ -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;
|
||||
|
@ -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 );
|
||||
|
@ -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;
|
||||
|
@ -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 );
|
||||
|
@ -74,6 +74,7 @@ void * Trick::MessageThreadedCout::thread_body() {
|
||||
write_pending_messages() ;
|
||||
RELEASE() ;
|
||||
}
|
||||
return (void*)0;
|
||||
}
|
||||
|
||||
void Trick::MessageThreadedCout::write_pending_messages() {
|
||||
|
Loading…
Reference in New Issue
Block a user