-
Notifications
You must be signed in to change notification settings - Fork 320
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
msvc build warning #520
Comments
Can you try a more recent commit? I believe this was already fixed here 282c10d |
Slightly confused on your last reply. Are you using 831d858? and what compiler are you using? -Travis |
yeah, we compile without warnings on master tip (32-bit and 64) on CI, or it would error. Check Win Cmake flags at: https://github.com/analogdevicesinc/libiio/blob/master/CMakeLists.txt#L62-L65 and https://github.com/analogdevicesinc/libiio/blob/master/CMakeLists.txt#L161-L164 log at:
|
Sorry, Yes using everything up to commit 831d858. |
try to replicate #520 Signed-off-by: Robin Getz <[email protected]>
try to replicate #520 Signed-off-by: Robin Getz <[email protected]>
try to replicate #520 Signed-off-by: Robin Getz <[email protected]>
try to replicate #520 Signed-off-by: Robin Getz <[email protected]>
try to replicate #520 Signed-off-by: Robin Getz <[email protected]>
try to replicate #520 Signed-off-by: Robin Getz <[email protected]>
try to replicate #520 Signed-off-by: Robin Getz <[email protected]>
try to replicate #520 Signed-off-by: Robin Getz <[email protected]>
try to replicate #520 Signed-off-by: Robin Getz <[email protected]>
try to replicate #520 Signed-off-by: Robin Getz <[email protected]>
Ok - I can replicate things on AppVeyor - and will merge fixes when everything is resolved. Thanks for the bug report. Just as a question - what version of MSVC does it make sense to release binaries on? oldest? or latest? I think today its 2015 |
try to replicate #520 Signed-off-by: Robin Getz <[email protected]>
try to replicate #520 Signed-off-by: Robin Getz <[email protected]>
try to replicate #520 Signed-off-by: Robin Getz <[email protected]>
try to replicate #520 Signed-off-by: Robin Getz <[email protected]>
try to replicate #520 Signed-off-by: Robin Getz <[email protected]>
try to replicate #520 Signed-off-by: Robin Getz <[email protected]>
try to replicate #520 Signed-off-by: Robin Getz <[email protected]>
try to replicate #520 Signed-off-by: Robin Getz <[email protected]>
Ok - this will be fixed on #523 - if you still see issues - let us know. Closing this for now. |
Tested the fix and all good. thanks. |
The recent commit "Win: move to safe version of sscanf" is resulting in a build warning for me.
Specifically
xml.c(153,25): error C2220: the following warning is treated as an error xml.c(153,25): warning C4477: 'sscanf_s' : format string '%c' requires an argument of type 'unsigned int', but variadic argument 2 has type 'size_t' xml.c(153,25): message : this argument is used as a buffer size xml.c(153,25): warning C4477: 'sscanf_s' : format string '%c' requires an argument of type 'unsigned int', but variadic argument 4 has type 'size_t' xml.c(153,25): message : this argument is used as a buffer size xml.c(165,25): warning C4477: 'sscanf_s' : format string '%c' requires an argument of type 'unsigned int', but variadic argument 2 has type 'size_t' xml.c(165,25): message : this argument is used as a buffer size xml.c(165,25): warning C4477: 'sscanf_s' : format string '%c' requires an argument of type 'unsigned int', but variadic argument 4 has type 'size_t' xml.c(165,25): message : this argument is used as a buffer size
Casting the sizeof params to int solves the problem. ie:
&e, (unsigned int)sizeof(e), &s, (unsigned int)sizeof(s),
The text was updated successfully, but these errors were encountered: