[liblouis-liblouisxml] Compiler warnings in VC6 environment

  • From: "Jeff Dittel" <jeff@xxxxxxxxxxx>
  • To: <liblouis-liblouisxml@xxxxxxxxxxxxx>
  • Date: Tue, 8 Jul 2008 08:57:13 -0500

Hey John,
 
When compiling in the VC6 environment I am getting over 100 warnings.  I was
wondering if you would do the following changes for the next release, so we
don't get these warnings:
 
* At the top of LibLouis.h add the line:
#pragma warning( disable : 4114 )
Note: This warning is because you use the const like:
const char const * ...
which causes the warning:
same type qualifier used more than once
 
* The following warnings are due to signed/unsigned mismatches and can be
fixed by casting:
lou_translatestring.c(156) : warning C4018: '<=' : signed/unsigned mismatch
lou_translatestring.c(691) : warning C4018: '<' : signed/unsigned mismatch
lou_translatestring.c(997) : warning C4018: '<' : signed/unsigned mismatch
lou_translatestring.c(1003) : warning C4018: '<' : signed/unsigned mismatch
lou_translatestring.c(1010) : warning C4018: '<' : signed/unsigned mismatch
lou_translatestring.c(1428) : warning C4018: '>' : signed/unsigned mismatch
lou_translatestring.c(1430) : warning C4018: '<' : signed/unsigned mismatch
readconfig.c(336) : warning C4018: '==' : signed/unsigned mismatch
readconfig.c(350) : warning C4018: '==' : signed/unsigned mismatch
transcriber.c(238) : warning C4018: '>=' : signed/unsigned mismatch
transcriber.c(272) : warning C4244: '=' : conversion from 'unsigned short '
to 'unsigned char ', possible loss of data
 
* Here is three other warnings that need to be cleaned up:
paths.c(56) : warning C4047: 'function' : 'unsigned long ' differs in levels
of indirection from 'void *'
paths.c(56) : warning C4024: 'lpfnSHGetFolderPath' : different types for
formal and actual parameter 4
paths.c(99) : warning C4028: formal parameter 1 different from declaration
 
Thanks very much,
 
Jeff
 


Jeff Dittel, President 
~~~~~~~~~~~~~~~~~~~~~~ 
Britlan, Ltd. 
516 East Birch Avenue 
Whitefish Bay, WI 53217 
jeff@xxxxxxxxxxx 
U.S. Office: (414)962-2281 
Costa Rica Office: (414)290-0574 

Other related posts: