FreeBSD Bugzilla – Attachment 196400 Details for
Bug 230502
games/flightgear: fails to build with clang 7
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
First patch attempt
patch-flightgear-PR230502.txt (text/plain), 1.10 KB, created by
Ganael LAPLANCHE
on 2018-08-20 20:36:55 UTC
(
hide
)
Description:
First patch attempt
Filename:
MIME Type:
Creator:
Ganael LAPLANCHE
Created:
2018-08-20 20:36:55 UTC
Size:
1.10 KB
patch
obsolete
>diff -aurN games/flightgear.orig/files/patch-src-AIModel-AIFlightPlanCreatePushBack.cxx games/flightgear/files/patch-src-AIModel-AIFlightPlanCreatePushBack.cxx >--- games/flightgear.orig/files/patch-src-AIModel-AIFlightPlanCreatePushBack.cxx 1970-01-01 01:00:00.000000000 +0100 >+++ games/flightgear/files/patch-src-AIModel-AIFlightPlanCreatePushBack.cxx 2018-08-17 09:16:44.030278000 +0200 >@@ -0,0 +1,15 @@ >+Fix build with clang 7: >+ >+src/AIModel/AIFlightPlanCreatePushBack.cxx:96:48: error: ordered comparison between pointer and zero ('FGTaxiNode *' and 'int') >+ >+--- src/AIModel/AIFlightPlanCreatePushBack.cxx.orig 2018-08-17 09:14:25.768512000 +0200 >++++ src/AIModel/AIFlightPlanCreatePushBack.cxx 2018-08-17 09:14:44.343865000 +0200 >+@@ -93,7 +93,7 @@ >+ >+ FGGroundNetwork* groundNet = dep->groundNetwork(); >+ FGParking *parking = gate.parking(); >+- if (parking && parking->getPushBackPoint() > 0) { >++ if (parking && parking->getPushBackPoint() != NULL) { >+ FGTaxiRoute route = groundNet->findShortestRoute(parking, parking->getPushBackPoint(), false); >+ >+ int size = route.size();
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 230502
: 196400