1
0
mirror of https://github.com/aportelli/LatAnalyze.git synced 2024-11-10 08:55:37 +00:00

less warnings in third-party code

This commit is contained in:
Antonin Portelli 2015-02-24 16:59:22 +00:00
parent 0ae0abc297
commit b061e9093f
5 changed files with 25 additions and 2 deletions

View File

@ -28,7 +28,11 @@
#include <iostream>
#include <LatAnalyze/AsciiFile.hpp>
#include "AsciiParser.hpp"
#pragma GCC diagnostic ignored "-Wshorten-64-to-32"
#pragma GCC diagnostic ignored "-Wconversion"
#pragma GCC diagnostic ignored "-Wsign-conversion"
#pragma GCC diagnostic ignored "-Wsign-compare"
#pragma GCC diagnostic ignored "-Wdeprecated-register"
#pragma GCC diagnostic ignored "-Wunused-function"
#pragma GCC diagnostic ignored "-Wunused-parameter"

View File

@ -28,6 +28,10 @@
#include <utility>
#include <cstring>
#pragma GCC diagnostic ignored "-Wshorten-64-to-32"
#pragma GCC diagnostic ignored "-Wconversion"
#pragma GCC diagnostic ignored "-Wsign-conversion"
using namespace std;
using namespace Latan;
@ -40,7 +44,7 @@
%}
%pure-parser
%name-prefix="_Ascii_"
%name-prefix "_Ascii_"
%locations
%defines
%error-verbose

View File

@ -28,7 +28,11 @@
#include <iostream>
#include <LatAnalyze/MathInterpreter.hpp>
#include "MathParser.hpp"
#pragma GCC diagnostic ignored "-Wshorten-64-to-32"
#pragma GCC diagnostic ignored "-Wconversion"
#pragma GCC diagnostic ignored "-Wsign-conversion"
#pragma GCC diagnostic ignored "-Wsign-compare"
#pragma GCC diagnostic ignored "-Wdeprecated-register"
#pragma GCC diagnostic ignored "-Wunused-function"
#pragma GCC diagnostic ignored "-Wunused-parameter"

View File

@ -24,12 +24,16 @@
#include <LatAnalyze/Global.hpp>
#include <LatAnalyze/MathInterpreter.hpp>
#pragma GCC diagnostic ignored "-Wshorten-64-to-32"
#pragma GCC diagnostic ignored "-Wconversion"
#pragma GCC diagnostic ignored "-Wsign-conversion"
using namespace std;
using namespace Latan;
%}
%pure-parser
%name-prefix="_math_"
%name-prefix "_math_"
%locations
%defines
%error-verbose

View File

@ -19,6 +19,10 @@
#include <LatAnalyze/MinuitMinimizer.hpp>
#include <LatAnalyze/includes.hpp>
#pragma GCC diagnostic ignored "-Wdeprecated-register"
#pragma GCC diagnostic ignored "-Wconversion"
#include <Minuit2/FCNBase.h>
#include <Minuit2/FunctionMinimum.h>
#include <Minuit2/MnMigrad.h>
@ -30,6 +34,9 @@
#include <Minuit2/SimplexMinimizer.h>
#include <Minuit2/VariableMetricMinimizer.h>
#pragma GCC diagnostic warning "-Wdeprecated-register"
#pragma GCC diagnostic warning "-Wconversion"
using namespace std;
using namespace ROOT;
using namespace Minuit2;