VOGONS


First post, by emendelson

User metadata
Rank Oldbie
Rank
Oldbie

I'm working on a project (which I will post publicly when it's finished, a few days from now, I hope) which is based on h-a-l's amazing Megabuild 6, but includes some other patches that are useful for text-based applications like WordPerfect for DOS or Microsoft Word for DOS.

I compile this project using Visual C++ 2010 Express. These warning messages appear when compiling:

1>..\src\hardware\parport\printer.cpp(51): warning C4244: 'initializing' : conversion from 'double' to 'float', possible loss of […]
Show full quote

1>..\src\hardware\parport\printer.cpp(51): warning C4244: 'initializing' : conversion from 'double' to 'float', possible loss of data
1>..\src\hardware\parport\printer.cpp(52): warning C4244: 'initializing' : conversion from 'double' to 'float', possible loss of data
1>..\src\hardware\parport\printer.cpp(53): warning C4244: 'initializing' : conversion from 'double' to 'float', possible loss of data
1>..\src\hardware\parport\printer.cpp(58): warning C4244: '=' : conversion from 'float' to 'Uint8', possible loss of data
1>..\src\hardware\parport\printer.cpp(59): warning C4244: '=' : conversion from 'float' to 'Uint8', possible loss of data
1>..\src\hardware\parport\printer.cpp(60): warning C4244: '=' : conversion from 'float' to 'Uint8', possible loss of data
1>..\src\hardware\parport\printer.cpp(1290): warning C4244: 'initializing' : conversion from 'unsigned long' to 'Bit16u', possible loss of data
1>..\src\hardware\parport\printer.cpp(1357): warning C4018: '<' : signed/unsigned mismatch
1>..\src\hardware\parport\printer.cpp(1358): warning C4018: '<' : signed/unsigned mismatch
1>..\src\hardware\parport\printer.cpp(1363): warning C4018: '<' : signed/unsigned mismatch
1>..\src\hardware\parport\printer.cpp(1363): warning C4018: '<' : signed/unsigned mismatch
1>..\src\hardware\parport\printer.cpp(1391): warning C4018: '<' : signed/unsigned mismatch
1>..\src\hardware\parport\printer.cpp(1393): warning C4018: '<' : signed/unsigned mismatch
1>..\src\hardware\parport\printer.cpp(1395): warning C4018: '<' : signed/unsigned mismatch
1>..\src\hardware\parport\printer.cpp(1397): warning C4018: '<' : signed/unsigned mismatch
1>..\src\hardware\parport\printer.cpp(1552): warning C4018: '<' : signed/unsigned mismatch
1>..\src\hardware\parport\printer.cpp(1552): warning C4018: '<' : signed/unsigned mismatch

None of these seem to have any effect, because h-a-l's parallel port functions work exactly as designed, but it would be nice to able to compile without the warnings. Thanks for any help and advice.

PS I know that I can tell the compiler not to display those specific warning messages, but it seems like a better idea to change the code, not hide the warnings.