From ddbada4e64fe4117a0777b7a3d12a1a527991511 Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Mon, 25 Jul 2011 17:49:30 -0700 Subject: uhd: fixed some warnings with gcc on macosx --- host/lib/usrp/cores/i2c_core_100.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'host/lib/usrp/cores') diff --git a/host/lib/usrp/cores/i2c_core_100.cpp b/host/lib/usrp/cores/i2c_core_100.cpp index 12352f108..ceeb3f518 100644 --- a/host/lib/usrp/cores/i2c_core_100.cpp +++ b/host/lib/usrp/cores/i2c_core_100.cpp @@ -99,7 +99,9 @@ public: byte_vector_t bytes; if (num_bytes == 0) return bytes; - while (_iface->peek16(REG_I2C_CMD_STATUS) & I2C_ST_BUSY); + while (_iface->peek16(REG_I2C_CMD_STATUS) & I2C_ST_BUSY){ + /* NOP */ + } _iface->poke16(REG_I2C_DATA, (addr << 1) | 1); //addr and read bit (1) _iface->poke16(REG_I2C_CMD_STATUS, I2C_CMD_WR | I2C_CMD_START); -- cgit v1.2.3