Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ad116cd
commit bab3101
Showing
6 changed files
with
102 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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
11
darwin/macports/ports/devel/jsbsim/files/patch_FGJSBBase.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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)); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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
11
darwin/macports/ports/devel/jsbsim/files/patch_FGThruster.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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
47
darwin/macports/ports/devel/jsbsim/files/patch_easyxml.hxx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |