modelica-3rdparty / Modelica_DeviceDrivers

Free library for interfacing hardware drivers to Modelica models. There is support for joysticks, keyboards, UDP, TCP/IP, LCM, MQTT, shared memory, AD/DA converters, serial port and other devices.
BSD 3-Clause "New" or "Revised" License
77 stars 31 forks source link

Fix compiler format warnings #372

Closed tbeu closed 1 year ago

tbeu commented 1 year ago
E:/work/Modelica_DeviceDrivers/Resources/Include\MDDTCPIPSocketServer.h:173:101: warning: format specifies type 'long' but the argument has type 'int' [-Wformat]
        ModelicaFormatError("MDDTCPIPSocketServer.h:%d: socket failed with error: %ld\n", __LINE__, WSAGetLastError());
                                                                                  ~~~               ^~~~~~~~~~~~~~~~~
                                                                                  %d
E:/work/Modelica_DeviceDrivers/Resources/Include\MDDTCPIPSocketServer.h:181:106: warning: format specifies type 'long' but the argument has type 'int' [-Wformat]
        ModelicaFormatError("MDDTCPIPSocketServer.h:%d: ioctlsocket failed with error: %ld\n", __LINE__, iResult);
                                                                                       ~~~               ^~~~~~~
                                                                                       %d
tbeu commented 1 year ago

Note: CI at Travis CI did not run due to a negative credit balance. I already contacted Travis CI support and it usually does not take too long to get the credits for OSS.

bernhard-thiele commented 1 year ago

Note: CI at Travis CI did not run due to a negative credit balance. I already contacted Travis CI support and it usually does not take too long to get the credits for OSS.

Great, thank you, it's really nice to have that CI support