mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-27 08:55:51 +08:00
[simulator] ignore stupid unused-parameter warnings in JSBSim
This commit is contained in:
@@ -28,7 +28,13 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include "std.h"
|
#include "std.h"
|
||||||
|
|
||||||
|
// ignore stupid warnings in JSBSim
|
||||||
|
#pragma GCC diagnostic push
|
||||||
|
#pragma GCC diagnostic ignored "-Wunused-parameter"
|
||||||
#include <FGFDMExec.h>
|
#include <FGFDMExec.h>
|
||||||
|
#pragma GCC diagnostic pop
|
||||||
|
|
||||||
#include "flight_gear.h"
|
#include "flight_gear.h"
|
||||||
#include "sim_ac_flightgear.h"
|
#include "sim_ac_flightgear.h"
|
||||||
|
|
||||||
|
|||||||
@@ -29,9 +29,14 @@
|
|||||||
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
|
// ignore stupid warnings in JSBSim
|
||||||
|
#pragma GCC diagnostic push
|
||||||
|
#pragma GCC diagnostic ignored "-Wunused-parameter"
|
||||||
#include <FGFDMExec.h>
|
#include <FGFDMExec.h>
|
||||||
//#include <SGGeod.hxx>
|
//#include <SGGeod.hxx>
|
||||||
#include <math/FGLocation.h>
|
#include <math/FGLocation.h>
|
||||||
|
#pragma GCC diagnostic pop
|
||||||
|
|
||||||
#include "sim_ac_flightgear.h"
|
#include "sim_ac_flightgear.h"
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|||||||
@@ -23,9 +23,13 @@
|
|||||||
#ifndef SIM_AC_JSBSIM_H
|
#ifndef SIM_AC_JSBSIM_H
|
||||||
#define SIM_AC_JSBSIM_H
|
#define SIM_AC_JSBSIM_H
|
||||||
|
|
||||||
|
// ignore stupid warnings in JSBSim
|
||||||
|
#pragma GCC diagnostic push
|
||||||
|
#pragma GCC diagnostic ignored "-Wunused-parameter"
|
||||||
#include <FGFDMExec.h>
|
#include <FGFDMExec.h>
|
||||||
#include <FGJSBBase.h>
|
#include <FGJSBBase.h>
|
||||||
#include <models/FGPropulsion.h>
|
#include <models/FGPropulsion.h>
|
||||||
|
#pragma GCC diagnostic pop
|
||||||
|
|
||||||
#include "std.h"
|
#include "std.h"
|
||||||
#include "generated/airframe.h"
|
#include "generated/airframe.h"
|
||||||
|
|||||||
Reference in New Issue
Block a user