summaryrefslogtreecommitdiffstats
path: root/planner.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-11-21 05:03:56 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-11-21 05:03:56 -0800
commit33b15ea906bb776511b0109ac3b1fa8daf959764 (patch)
treeda15904914741193a1e79080d76e9ec45d5c4969 /planner.c
parentcd0475fe961ba65b65dd8cc707167c218c2b8649 (diff)
downloadsubsurface-33b15ea906bb776511b0109ac3b1fa8daf959764.tar.gz
Silence some warnings when building on Mac
The *-clang* selector doesn't appear to work correctly in my build environment (or I just don't understand how it is supposed to work). Either way, making this conditional on !mac works. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'planner.c')
-rw-r--r--planner.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/planner.c b/planner.c
index 5ef66961b..cdc13a599 100644
--- a/planner.c
+++ b/planner.c
@@ -268,7 +268,7 @@ struct dive *create_dive_from_plan(struct diveplan *diveplan, const char **error
int plano2 = (o2 + 5) / 10 * 10;
int planhe = (he + 5) / 10 * 10;
int idx;
- if (idx = add_gas(dive, plano2, planhe) < 0)
+ if ((idx = add_gas(dive, plano2, planhe)) < 0)
goto gas_error_exit;
add_gas_switch_event(dive, dc, lasttime, idx);
oldo2 = o2; oldhe = he;