iamandi / nanopb

Automatically exported from code.google.com/p/nanopb
zlib License
0 stars 0 forks source link

Fix build warnings with Microsoft compilers #33

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Compile the code

What is the expected output? What do you see instead?

I expect the code to compile cleanly.  I see warnings like 

"conversion from __int64 to int, possible loss of data"

What version of the product are you using? On what operating system?

npb-0.1.6.  Windows.

Please provide any additional information below.

Patch attached.

Original issue reported on code.google.com by david.ho...@googlemail.com on 2 Sep 2012 at 8:28

Attachments:

GoogleCodeExporter commented 9 years ago
This issue was updated by revision be78e3b4d0ff.

Original comment by Petteri.Aimonen on 3 Sep 2012 at 2:19

GoogleCodeExporter commented 9 years ago
Thanks for the patch. I enabled -Wconversion in GCC, so that it should catch 
this in the future.

Original comment by Petteri.Aimonen on 3 Sep 2012 at 2:36

GoogleCodeExporter commented 9 years ago
Thanks!

Original comment by david.ho...@googlemail.com on 3 Sep 2012 at 3:25

GoogleCodeExporter commented 9 years ago
Fixed in nanopb-0.1.7

Original comment by Petteri.Aimonen on 12 Nov 2012 at 7:33