diff options
author | Oliver Smith <osmith@sysmocom.de> | 2023-07-13 12:43:36 +0200 |
---|---|---|
committer | Oliver Smith <osmith@sysmocom.de> | 2023-07-13 14:34:59 +0200 |
commit | a98521ac056077680dfe693957eda4a8848c9f06 (patch) | |
tree | 6ce11fbb2bf4633abb228de2f6636c9c3304608b | |
parent | df4520df7736325958d853f57c90eb32f653a233 (diff) |
USRPDevice:updateAlignment: remove byteswap code
After upgrading our CI environment to use Debian 12 with GCC 12, the
byteswap code fails the build with the following. I've talked to Eric
about this and he recommended to just remove the code as practically
nobody will use osmo-trx with a big endian system.
USRPDevice.cpp:591:30: error: 'data' is used uninitialized [-Werror=uninitialized]
591 | *wordPtr = host_to_usrp_u32(*wordPtr);
| ~~~~~~~~~~~~~~~~^~~~~~~~~~
Related: OS#6057
Change-Id: I806d8c1432cb20efca1830a2752a4cbc70384b54
-rw-r--r-- | Transceiver52M/device/usrp1/USRPDevice.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Transceiver52M/device/usrp1/USRPDevice.cpp b/Transceiver52M/device/usrp1/USRPDevice.cpp index 5c40aa8..852b715 100644 --- a/Transceiver52M/device/usrp1/USRPDevice.cpp +++ b/Transceiver52M/device/usrp1/USRPDevice.cpp @@ -587,8 +587,7 @@ bool USRPDevice::updateAlignment(TIMESTAMP timestamp) { #ifndef SWLOOPBACK short data[] = {0x00,0x02,0x00,0x00}; - uint32_t *wordPtr = (uint32_t *) data; - *wordPtr = host_to_usrp_u32(*wordPtr); + /* FIXME: big endian */ bool tmpUnderrun; std::vector<short *> buf(1, data); |