Fix Windows build (few warnings and a wrong file descriptor comparison).

This commit is contained in:
Daniel Caujolle-Bert
2025-06-02 17:06:12 +02:00
parent b26e8c3f2f
commit 14ee06fed0
2 changed files with 6 additions and 0 deletions

View File

@@ -1402,7 +1402,9 @@ bool CMMDVMHost::createModem()
std::string uartPort = m_conf.getModemUARTPort();
unsigned int uartSpeed = m_conf.getModemUARTSpeed();
std::string i2cPort = m_conf.getModemI2CPort();
#if defined(__linux__)
unsigned int i2cAddress = m_conf.getModemI2CAddress();
#endif
std::string modemAddress = m_conf.getModemModemAddress();
unsigned short modemPort = m_conf.getModemModemPort();
std::string localAddress = m_conf.getModemLocalAddress();