summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--planner.c2
-rw-r--r--subsurface-configure.pri7
2 files changed, 6 insertions, 3 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;
diff --git a/subsurface-configure.pri b/subsurface-configure.pri
index 0fe09fa80..e62bd1134 100644
--- a/subsurface-configure.pri
+++ b/subsurface-configure.pri
@@ -11,9 +11,12 @@
# turned on every once in a while in case they do show the occasional
# actual bug
*-g++* | *-clang*: QMAKE_CFLAGS += -Wno-unused-result -Wno-pointer-sign -fno-strict-overflow
-*-g++*: QMAKE_CFLAGS += -Wno-maybe-uninitialized
*-clang*: QMAKE_CFLAGS += -Wno-format-security
-*-g++*: QMAKE_CXXFLAGS += -Wno-maybe-uninitialized -fno-strict-overflow
+*-g++*: QMAKE_CXXFLAGS += -fno-strict-overflow
+!mac: {
+*-g++*: QMAKE_CXXFLAGS += -Wno-maybe-uninitialized
+*-g++*: QMAKE_CFLAGS += -Wno-maybe-uninitialized
+}
!win32-msvc*: QMAKE_CFLAGS += -std=gnu99