Skip to content

Commit

Permalink
Silence compiler warnings
Browse files Browse the repository at this point in the history
Signed-off-by: Robert C. Helling <helling@atdotde.de>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
  • Loading branch information
atdotde authored and dirkhh committed Feb 2, 2016
1 parent fdd5ee5 commit c32f5cc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion subsurface-core/divelist.c
Original file line number Diff line number Diff line change
Expand Up @@ -854,7 +854,7 @@ struct dive *merge_two_dives(struct dive *a, struct dive *b)

// renumber dives from merged one in advance by difference between
// merged dives numbers. Do not renumber if actual number is zero.
for (j; j < dive_table.nr; j++)
for (; j < dive_table.nr; j++)
if (!dive_table.dives[j]->number == 0)
dive_table.dives[j]->number -= factor;

Expand Down
4 changes: 2 additions & 2 deletions subsurface-core/profile.h
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#ifndef PROFILE_H
#define PROFILE_H

#include "dive.h"

#ifdef __cplusplus
extern "C" {
#endif

#include "dive.h"

typedef enum {
STABLE,
SLOW,
Expand Down
4 changes: 2 additions & 2 deletions tests/testunitconversion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ void TestUnitConversion::testUnitConversions()
QCOMPARE(IS_FP_SAME(psi_to_bar(14.6959488), 1.01325), true);
QCOMPARE(psi_to_mbar(14.6959488), (long)1013);
QCOMPARE(to_PSI((pressure_t){ 1013 }), (int)15);
QCOMPARE(IS_FP_SAME(bar_to_atm(1.013), 1), true);
QCOMPARE(IS_FP_SAME(mbar_to_atm(1013), 1), true);
QCOMPARE(IS_FP_SAME(bar_to_atm(1.013), 1.0), true);
QCOMPARE(IS_FP_SAME(mbar_to_atm(1013), 1.0), true);
QCOMPARE(mbar_to_PSI(1013), (int)15);
get_units();
}
Expand Down

0 comments on commit c32f5cc

Please sign in to comment.