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