A few functions have incorrect annotations, which raises static code
analysis warnings. One of the functions is "DiUninstallDevice", which
is part of the Windows SDK so we can't do anything other than wrap it
with "pragma"s.
At the same time, we have an incorrect "switch" statement, which will
incorrectly count IO errors.
Also, we're disabling the 26812 warning. The wnbd public headers
include enums and we can't use "enum class" since we have to be retain
C compatibility.
Fix compiler warnings
A few functions have incorrect annotations, which raises static code analysis warnings. One of the functions is "DiUninstallDevice", which is part of the Windows SDK so we can't do anything other than wrap it with "pragma"s.
At the same time, we have an incorrect "switch" statement, which will incorrectly count IO errors.
Also, we're disabling the 26812 warning. The wnbd public headers include enums and we can't use "enum class" since we have to be retain C compatibility.