Skip to content

Commit

Permalink
patch files for jsbsim
Browse files Browse the repository at this point in the history
  • Loading branch information
lamestllama committed Jan 18, 2011
1 parent ad116cd commit bab3101
Show file tree
Hide file tree
Showing 6 changed files with 102 additions and 0 deletions.
11 changes: 11 additions & 0 deletions darwin/macports/ports/devel/jsbsim/files/patch_FGForce.h
@@ -0,0 +1,11 @@
--- src/models/propulsion/FGForce.h.orig 2011-01-18 23:50:24.000000000 +1030
+++ src/models/propulsion/FGForce.h 2011-01-18 23:51:17.000000000 +1030
@@ -227,7 +227,7 @@
public:
/// Constructor
FGForce(FGFDMExec *FDMExec);
- FGForce(const FGForce& force) {
+ FGForce(const FGForce& force):FGJSBBase() {
vFn = force.vFn;
vXYZn = force.vXYZn;
ttype = force.ttype;
11 changes: 11 additions & 0 deletions darwin/macports/ports/devel/jsbsim/files/patch_FGJSBBase.h
@@ -0,0 +1,11 @@
--- src/FGJSBBase.h.orig 2011-01-18 22:44:42.000000000 +1030
+++ src/FGJSBBase.h 2011-01-18 22:46:56.000000000 +1030
@@ -310,7 +310,7 @@

static std::queue <Message> Messages;

- void Debug(int) {};
+ void Debug(int from __attribute__ ((unused))) {};

static unsigned int messageId;

11 changes: 11 additions & 0 deletions darwin/macports/ports/devel/jsbsim/files/patch_FGTank.cpp
@@ -0,0 +1,11 @@
--- src/models/propulsion/FGTank.cpp.orig 2011-01-18 22:43:33.000000000 +1030
+++ src/models/propulsion/FGTank.cpp 2011-01-18 22:44:09.000000000 +1030
@@ -199,7 +199,7 @@

//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

-const double FGTank::GetXYZ(int idx)
+double FGTank::GetXYZ(int idx)
{
return vXYZ_drain(idx) + (Contents/Capacity)*(vXYZ(idx)-vXYZ_drain(idx));
}
11 changes: 11 additions & 0 deletions darwin/macports/ports/devel/jsbsim/files/patch_FGTank.h
@@ -0,0 +1,11 @@
--- src/models/propulsion/FGTank.h.orig 2011-01-18 22:42:20.000000000 +1030
+++ src/models/propulsion/FGTank.h 2011-01-18 22:43:20.000000000 +1030
@@ -276,7 +276,7 @@
void SetDensity(double d) { Density = d; }

const FGColumnVector3 GetXYZ(void);
- const double GetXYZ(int idx);
+ double GetXYZ(int idx);

const GrainType GetGrainType(void) {return grainType;}

11 changes: 11 additions & 0 deletions darwin/macports/ports/devel/jsbsim/files/patch_FGThruster.h
@@ -0,0 +1,11 @@
--- src/models/propulsion/FGThruster.h.orig 2011-01-18 22:41:06.000000000 +1030
+++ src/models/propulsion/FGThruster.h 2011-01-18 22:41:51.000000000 +1030
@@ -97,7 +97,7 @@
return Thrust;
}
void SetName(string name) {Name = name;}
- virtual void SetRPM(double rpm) {};
+ virtual void SetRPM(double rpm __attribute__ ((unused))) {};
virtual double GetPowerRequired(void) {return 0.0;}
virtual void SetdeltaT(double dt) {deltaT = dt;}
double GetThrust(void) const {return Thrust;}
47 changes: 47 additions & 0 deletions darwin/macports/ports/devel/jsbsim/files/patch_easyxml.hxx
@@ -0,0 +1,47 @@
--- src/simgear/xml/easyxml.hxx.orig 2011-01-18 22:24:28.000000000 +1030
+++ src/simgear/xml/easyxml.hxx 2011-01-18 22:38:11.000000000 +1030
@@ -246,7 +246,7 @@
* @param atts The element's attributes (not null).
* @see #endElement
*/
- virtual void startElement (const char * name, const XMLAttributes &atts) {}
+ virtual void startElement (const char * name __attribute__ ((unused)), const XMLAttributes &atts __attribute__ ((unused))) {}
/** Callback for the end of an XML element.
*
@@ -255,7 +255,7 @@
* @param name The name of the element that is ending (not null).
* @see #startElement
*/
- virtual void endElement (const char * name) {}
+ virtual void endElement (const char * name __attribute__ ((unused))) {}
/** Callback for a chunk of character data.
*
@@ -270,7 +270,7 @@
* @param length The number of characters in the chunk (may
* be zero).
*/
- virtual void data (const char * s, int length) {}
+ virtual void data (const char * s __attribute__ ((unused)), int length __attribute__ ((unused))) {}
/** Callback for an XML processing instruction.
*
@@ -285,7 +285,7 @@
* @param target The processing instruction target (not null).
* @param data The processing instruction data (not null).
*/
- virtual void pi (const char * target, const char * data) {}
+ virtual void pi (const char * target __attribute__ ((unused)), const char * data __attribute__ ((unused))) {}
/** Callback for an XML parsing warning.
*
@@ -298,7 +298,7 @@
* @param column The character position in the line that generated
* the warning.
*/
- virtual void warning (const char * message, int line, int column) {}
+ virtual void warning (const char * message __attribute__ ((unused)), int line __attribute__ ((unused)), int column __attribute__ ((unused))) {}
};
/** @relates XMLVisitor

0 comments on commit bab3101

Please sign in to comment.