POSIX sim: Remove unused error variables

This commit is contained in:
Lorenz Meier 2015-09-12 10:52:44 +02:00
parent 2be7b82256
commit ceb7204590
2 changed files with 0 additions and 12 deletions

View File

@ -354,12 +354,6 @@ MEASAirspeedSim::voltage_correction(float &diff_press_pa, float &temperature)
namespace meas_airspeed_sim
{
/* oddly, ERROR is not defined for c++ */
#ifdef ERROR
# undef ERROR
#endif
const int ERROR = -1;
MEASAirspeedSim *g_dev = nullptr;
int start(int i2c_bus);

View File

@ -72,12 +72,6 @@ enum BAROSIM_BUS {
BAROSIM_BUS_SIM_EXTERNAL
};
/* oddly, ERROR is not defined for c++ */
#ifdef ERROR
# undef ERROR
#endif
static const int ERROR = -1;
/* helper macro for handling report buffer indices */
#define INCREMENT(_x, _lim) do { __typeof__(_x) _tmp = _x+1; if (_tmp >= _lim) _tmp = 0; _x = _tmp; } while(0)