]> xenbits.xensource.com Git - pvdrivers/win/xeniface.git/commit
Fix compile warnings
authorMarek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
Tue, 10 Jul 2018 14:51:58 +0000 (15:51 +0100)
committerPaul Durrant <paul.durrant@citrix.com>
Tue, 10 Jul 2018 14:51:58 +0000 (15:51 +0100)
commit9716a887a28f45e82a15ae337615eca5eb2f6202
treece3f9838027bab0642f34ba4eddde79e27aec2c9
parentd809028df68318fa477bd9cf0004725d3ab94520
Fix compile warnings

Fix two warnings:

e:\xeniface\src\xenagent\service.cpp(684): warning C26439: This kind offunction may not throw.
Declare it 'noexcept' (f.6). [E:\xeniface\vs2017\xenagent\xenagent.vcxproj]

e:\xeniface\src\xenagent\xenifacedevice.cpp(57): warning C26451: Arithmetic overflow: Using operator
'+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before
calling operator '+' to avoid overflow (io.2). [E:\xeniface\vs2017\xenagent\xenagent.vcxproj]

Signed-off-by: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
src/xenagent/service.cpp
src/xenagent/service.h
src/xenagent/xenifacedevice.cpp