Skip to content

Instantly share code, notes, and snippets.

@abbood
Created May 16, 2017 14:01
Show Gist options
  • Save abbood/2612edc8f0be3922f5c4e03301ad05c2 to your computer and use it in GitHub Desktop.
Save abbood/2612edc8f0be3922f5c4e03301ad05c2 to your computer and use it in GitHub Desktop.
output of make catdoc
for i in src doc charsets; do\
(cd $i; /Applications/Xcode.app/Contents/Developer/usr/bin/make all);\
done
gcc -I. -g -O2 -Wall -DHAVE_CONFIG_H -DCATDOC_VERSION=\"0.94.2\" -DCHARSETPATH=\"/usr/local/share/catdoc\" -DSYSTEMRC=\"/usr/local/etc/catdocrc\" -DUSERRC=\".catdocrc\" -DHAVE_CONFIG_H -c -o catdoc.o catdoc.c
gcc -I. -g -O2 -Wall -DHAVE_CONFIG_H -DCATDOC_VERSION=\"0.94.2\" -DCHARSETPATH=\"/usr/local/share/catdoc\" -DSYSTEMRC=\"/usr/local/etc/catdocrc\" -DUSERRC=\".catdocrc\" -DHAVE_CONFIG_H -c -o reader.o reader.c
gcc -I. -g -O2 -Wall -DHAVE_CONFIG_H -DCATDOC_VERSION=\"0.94.2\" -DCHARSETPATH=\"/usr/local/share/catdoc\" -DSYSTEMRC=\"/usr/local/etc/catdocrc\" -DUSERRC=\".catdocrc\" -DHAVE_CONFIG_H -c -o writer.o writer.c
gcc -I. -g -O2 -Wall -DHAVE_CONFIG_H -DCATDOC_VERSION=\"0.94.2\" -DCHARSETPATH=\"/usr/local/share/catdoc\" -DSYSTEMRC=\"/usr/local/etc/catdocrc\" -DUSERRC=\".catdocrc\" -DHAVE_CONFIG_H -c -o analyze.o analyze.c
analyze.c:42:14: warning: passing 'unsigned char [129]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
if (strncmp(buffer,write_sign,2)==0) {
^~~~~~
/usr/include/string.h:84:26: note: passing argument to parameter '__s1' here
int strncmp(const char *__s1, const char *__s2, size_t __n);
^
analyze.c:46:21: warning: passing 'unsigned char [129]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
} else if (strncmp(buffer,rtf_sign,4)==0) {
^~~~~~
/usr/include/string.h:84:26: note: passing argument to parameter '__s1' here
int strncmp(const char *__s1, const char *__s2, size_t __n);
^
analyze.c:48:21: warning: passing 'unsigned char [129]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
} else if (strncmp(buffer,old_word_sign,2)==0) {
^~~~~~
/usr/include/string.h:84:26: note: passing argument to parameter '__s1' here
int strncmp(const char *__s1, const char *__s2, size_t __n);
^
analyze.c:53:14: warning: passing 'unsigned char [129]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
if (strncmp(buffer,ole_sign,8)==0) {
^~~~~~
/usr/include/string.h:84:26: note: passing argument to parameter '__s1' here
int strncmp(const char *__s1, const char *__s2, size_t __n);
^
analyze.c:74:14: warning: passing 'unsigned char [129]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign]
copy_out(f,buffer);
^~~~~~
./catdoc.h:220:30: note: passing argument to parameter 'header' here
void copy_out(FILE *f, char *header);
^
5 warnings generated.
gcc -I. -g -O2 -Wall -DHAVE_CONFIG_H -DCATDOC_VERSION=\"0.94.2\" -DCHARSETPATH=\"/usr/local/share/catdoc\" -DSYSTEMRC=\"/usr/local/etc/catdocrc\" -DUSERRC=\".catdocrc\" -DHAVE_CONFIG_H -c -o rtfread.o rtfread.c
gcc -I. -g -O2 -Wall -DHAVE_CONFIG_H -DCATDOC_VERSION=\"0.94.2\" -DCHARSETPATH=\"/usr/local/share/catdoc\" -DSYSTEMRC=\"/usr/local/etc/catdocrc\" -DUSERRC=\".catdocrc\" -DHAVE_CONFIG_H -c -o charsets.o charsets.c
gcc -I. -g -O2 -Wall -DHAVE_CONFIG_H -DCATDOC_VERSION=\"0.94.2\" -DCHARSETPATH=\"/usr/local/share/catdoc\" -DSYSTEMRC=\"/usr/local/etc/catdocrc\" -DUSERRC=\".catdocrc\" -DHAVE_CONFIG_H -c -o substmap.o substmap.c
substmap.c:75:24: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]
if (!isspace(*p)|| uc<0 || uc>0xfffd) {
~~^~
1 warning generated.
gcc -I. -g -O2 -Wall -DHAVE_CONFIG_H -DCATDOC_VERSION=\"0.94.2\" -DCHARSETPATH=\"/usr/local/share/catdoc\" -DSYSTEMRC=\"/usr/local/etc/catdocrc\" -DUSERRC=\".catdocrc\" -DHAVE_CONFIG_H -c -o fileutil.o fileutil.c
gcc -I. -g -O2 -Wall -DHAVE_CONFIG_H -DCATDOC_VERSION=\"0.94.2\" -DCHARSETPATH=\"/usr/local/share/catdoc\" -DSYSTEMRC=\"/usr/local/etc/catdocrc\" -DUSERRC=\".catdocrc\" -DHAVE_CONFIG_H -c -o confutil.o confutil.c
gcc -I. -g -O2 -Wall -DHAVE_CONFIG_H -DCATDOC_VERSION=\"0.94.2\" -DCHARSETPATH=\"/usr/local/share/catdoc\" -DSYSTEMRC=\"/usr/local/etc/catdocrc\" -DUSERRC=\".catdocrc\" -DHAVE_CONFIG_H -c -o numutils.o numutils.c
gcc -I. -g -O2 -Wall -DHAVE_CONFIG_H -DCATDOC_VERSION=\"0.94.2\" -DCHARSETPATH=\"/usr/local/share/catdoc\" -DSYSTEMRC=\"/usr/local/etc/catdocrc\" -DUSERRC=\".catdocrc\" -DHAVE_CONFIG_H -c -o ole.o ole.c
ole.c:100:14: warning: passing 'unsigned char [512]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
if (strncmp(oleBuf,ole_sign,8) != 0) {
^~~~~~
/usr/include/string.h:84:26: note: passing argument to parameter '__s1' here
int strncmp(const char *__s1, const char *__s2, size_t __n);
^
ole.c:100:21: warning: passing 'unsigned char [9]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
if (strncmp(oleBuf,ole_sign,8) != 0) {
^~~~~~~~
/usr/include/string.h:84:44: note: passing argument to parameter '__s2' here
int strncmp(const char *__s1, const char *__s2, size_t __n);
^
ole.c:327:13: warning: comparison of unsigned expression >= 0 is always true [-Wtautological-compare]
e->length >= 0 &&
~~~~~~~~~ ^ ~
ole.c:464:35: warning: if statement has empty body [-Wempty-body]
if (newoffset != e->file_offset);
^
ole.c:464:35: note: put the semicolon on a separate line to silence this warning
4 warnings generated.
gcc -o catdoc catdoc.o reader.o writer.o analyze.o rtfread.o charsets.o substmap.o fileutil.o confutil.o numutils.o ole.o
gcc -I. -g -O2 -Wall -DHAVE_CONFIG_H -DCATDOC_VERSION=\"0.94.2\" -DCHARSETPATH=\"/usr/local/share/catdoc\" -DSYSTEMRC=\"/usr/local/etc/catdocrc\" -DUSERRC=\".catdocrc\" -DHAVE_CONFIG_H -c -o xls2csv.o xls2csv.c
gcc -I. -g -O2 -Wall -DHAVE_CONFIG_H -DCATDOC_VERSION=\"0.94.2\" -DCHARSETPATH=\"/usr/local/share/catdoc\" -DSYSTEMRC=\"/usr/local/etc/catdocrc\" -DUSERRC=\".catdocrc\" -DHAVE_CONFIG_H -c -o sheet.o sheet.c
sheet.c:97:13: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
strtod(value,&endptr);
^~~~~
/usr/include/stdlib.h:162:28: note: passing argument to parameter here
double strtod(const char *, char **) __DARWIN_ALIAS(strtod);
^
1 warning generated.
gcc -I. -g -O2 -Wall -DHAVE_CONFIG_H -DCATDOC_VERSION=\"0.94.2\" -DCHARSETPATH=\"/usr/local/share/catdoc\" -DSYSTEMRC=\"/usr/local/etc/catdocrc\" -DUSERRC=\".catdocrc\" -DHAVE_CONFIG_H -c -o xlsparse.o xlsparse.c
xlsparse.c:95:20: warning: passing 'char [2]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
rectype=getshort(buffer,0);
^~~~~~
./catdoc.h:235:38: note: passing argument to parameter 'buffer' here
unsigned int getshort(unsigned char *buffer,int offset);
^
xlsparse.c:101:19: warning: passing 'char [2]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
reclen=getshort(buffer,0);
^~~~~~
./catdoc.h:235:38: note: passing argument to parameter 'buffer' here
unsigned int getshort(unsigned char *buffer,int offset);
^
xlsparse.c:112:31: warning: passing 'unsigned char [18000]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign]
process_item(rectype,reclen,rec);
^~~
./xls.h:37:51: note: passing argument to parameter 'rec' here
void process_item (int rectype, int reclen, char *rec);
^
xlsparse.c:138:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign]
parse_sst(sstBuffer,sstBytes);
^~~~~~~~~
./xls.h:36:22: note: passing argument to parameter 'sstbuf' here
void parse_sst(char *sstbuf,int bufsize);
^
xlsparse.c:153:21: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
codepage=getshort(rec,0);
^~~
./catdoc.h:235:38: note: passing argument to parameter 'buffer' here
unsigned int getshort(unsigned char *buffer,int offset);
^
xlsparse.c:163:24: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
format_code=getshort(rec,0);
^~~
./catdoc.h:235:38: note: passing argument to parameter 'buffer' here
unsigned int getshort(unsigned char *buffer,int offset);
^
xlsparse.c:194:12: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign]
sstBuffer=(char*)malloc(reclen);
^~~~~~~~~~~~~~~~~~~~~~
xlsparse.c:222:18: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
row = getshort(rec,0);
^~~
./catdoc.h:235:38: note: passing argument to parameter 'buffer' here
unsigned int getshort(unsigned char *buffer,int offset);
^
xlsparse.c:223:18: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
col = getshort(rec,2);
^~~
./catdoc.h:235:38: note: passing argument to parameter 'buffer' here
unsigned int getshort(unsigned char *buffer,int offset);
^
xlsparse.c:226:9: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign]
*pcell=copy_unicode_string(&src);
^~~~~~~~~~~~~~~~~~~~~~~~~~
xlsparse.c:230:19: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
row = getshort(rec,0);
^~~
./catdoc.h:235:38: note: passing argument to parameter 'buffer' here
unsigned int getshort(unsigned char *buffer,int offset);
^
xlsparse.c:231:19: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
col = getshort(rec,2);
^~~
./catdoc.h:235:38: note: passing argument to parameter 'buffer' here
unsigned int getshort(unsigned char *buffer,int offset);
^
xlsparse.c:239:18: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
row = getshort(rec,0);
^~~
./catdoc.h:235:38: note: passing argument to parameter 'buffer' here
unsigned int getshort(unsigned char *buffer,int offset);
^
xlsparse.c:240:23: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
startcol = getshort(rec,2);
^~~
./catdoc.h:235:38: note: passing argument to parameter 'buffer' here
unsigned int getshort(unsigned char *buffer,int offset);
^
xlsparse.c:241:19: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
endcol=getshort(rec,reclen-2);
^~~
./catdoc.h:235:38: note: passing argument to parameter 'buffer' here
unsigned int getshort(unsigned char *buffer,int offset);
^
xlsparse.c:247:22: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
int row = getshort(rec,0);
^~~
./catdoc.h:235:38: note: passing argument to parameter 'buffer' here
unsigned int getshort(unsigned char *buffer,int offset);
^
xlsparse.c:248:22: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
int col = getshort(rec,2);
^~~
./catdoc.h:235:38: note: passing argument to parameter 'buffer' here
unsigned int getshort(unsigned char *buffer,int offset);
^
xlsparse.c:250:26: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
int string_no=getshort(rec,6);
^~~
./catdoc.h:235:38: note: passing argument to parameter 'buffer' here
unsigned int getshort(unsigned char *buffer,int offset);
^
xlsparse.c:265:15: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
len=strlen(sst[string_no]);
^~~~~~~~~~~~~~
/usr/include/string.h:82:28: note: passing argument to parameter '__s' here
size_t strlen(const char *__s);
^
xlsparse.c:266:10: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
outptr=*pcell=malloc(len+1);
^~~~~~~~~~~~~~~~~~~~~
xlsparse.c:267:18: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
strcpy(outptr,sst[string_no]);
^~~~~~~~~~~~~~
/usr/include/secure/_string.h:83:33: note: expanded from macro 'strcpy'
__builtin___strcpy_chk (dest, src, __darwin_obsz (dest))
^~~
xlsparse.c:270:11: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign]
strcpy(*pcell,"");
^~~~~~
/usr/include/secure/_string.h:83:27: note: expanded from macro 'strcpy'
__builtin___strcpy_chk (dest, src, __darwin_obsz (dest))
^~~~
xlsparse.c:282:18: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
row = getshort(rec,0)-startrow;
^~~
./catdoc.h:235:38: note: passing argument to parameter 'buffer' here
unsigned int getshort(unsigned char *buffer,int offset);
^
xlsparse.c:283:18: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
col = getshort(rec,2);
^~~
./catdoc.h:235:38: note: passing argument to parameter 'buffer' here
unsigned int getshort(unsigned char *buffer,int offset);
^
xlsparse.c:285:46: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
*pcell=strdup(format_double(rec,6,getshort(rec,4)));
^~~
./catdoc.h:235:38: note: passing argument to parameter 'buffer' here
unsigned int getshort(unsigned char *buffer,int offset);
^
xlsparse.c:285:9: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign]
*pcell=strdup(format_double(rec,6,getshort(rec,4)));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xlsparse.c:292:18: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
row = getshort(rec,0)-startrow;
^~~
./catdoc.h:235:38: note: passing argument to parameter 'buffer' here
unsigned int getshort(unsigned char *buffer,int offset);
^
xlsparse.c:293:18: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
col = getshort(rec,2);
^~~
./catdoc.h:235:38: note: passing argument to parameter 'buffer' here
unsigned int getshort(unsigned char *buffer,int offset);
^
xlsparse.c:295:37: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
*pcell=strdup(format_int(getshort(rec,7),getshort(rec,4)));
^~~
./catdoc.h:235:38: note: passing argument to parameter 'buffer' here
unsigned int getshort(unsigned char *buffer,int offset);
^
xlsparse.c:295:53: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
*pcell=strdup(format_int(getshort(rec,7),getshort(rec,4)));
^~~
./catdoc.h:235:38: note: passing argument to parameter 'buffer' here
unsigned int getshort(unsigned char *buffer,int offset);
^
xlsparse.c:295:9: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign]
*pcell=strdup(format_int(getshort(rec,7),getshort(rec,4)));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xlsparse.c:304:18: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
row = getshort(rec,0)-startrow;
^~~
./catdoc.h:235:38: note: passing argument to parameter 'buffer' here
unsigned int getshort(unsigned char *buffer,int offset);
^
xlsparse.c:305:18: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
col = getshort(rec,2);
^~~
./catdoc.h:235:38: note: passing argument to parameter 'buffer' here
unsigned int getshort(unsigned char *buffer,int offset);
^
xlsparse.c:307:26: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
format_code = getshort(rec,4);
^~~
./catdoc.h:235:38: note: passing argument to parameter 'buffer' here
unsigned int getshort(unsigned char *buffer,int offset);
^
xlsparse.c:308:9: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign]
*pcell=strdup(format_rk(rec+6,format_code));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xlsparse.c:314:18: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
row = getshort(rec,0)-startrow;
^~~
./catdoc.h:235:38: note: passing argument to parameter 'buffer' here
unsigned int getshort(unsigned char *buffer,int offset);
^
xlsparse.c:315:23: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
startcol = getshort(rec,2);
^~~
./catdoc.h:235:38: note: passing argument to parameter 'buffer' here
unsigned int getshort(unsigned char *buffer,int offset);
^
xlsparse.c:316:21: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
endcol = getshort(rec,reclen-2);
^~~
./catdoc.h:235:38: note: passing argument to parameter 'buffer' here
unsigned int getshort(unsigned char *buffer,int offset);
^
xlsparse.c:321:25: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
format_code=getshort(rec,offset);
^~~
./catdoc.h:235:38: note: passing argument to parameter 'buffer' here
unsigned int getshort(unsigned char *buffer,int offset);
^
xlsparse.c:322:10: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign]
*pcell=strdup(format_rk(rec+offset+2,format_code));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xlsparse.c:331:18: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
row = getshort(rec,0)-startrow;
^~~
./catdoc.h:235:38: note: passing argument to parameter 'buffer' here
unsigned int getshort(unsigned char *buffer,int offset);
^
xlsparse.c:332:18: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
col = getshort(rec,2);
^~~
./catdoc.h:235:38: note: passing argument to parameter 'buffer' here
unsigned int getshort(unsigned char *buffer,int offset);
^
xlsparse.c:340:11: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign]
*pcell=strdup(buf);
^~~~~~~~~~~~
xlsparse.c:344:11: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign]
*pcell=strdup(buf);
^~~~~~~~~~~~
xlsparse.c:349:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
int format_code=getshort(rec,4);
^~~
./catdoc.h:235:38: note: passing argument to parameter 'buffer' here
unsigned int getshort(unsigned char *buffer,int offset);
^
xlsparse.c:350:10: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign]
*pcell=strdup(format_double(rec,6,format_code));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xlsparse.c:360:19: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign]
*saved_reference=copy_unicode_string(&src);
^~~~~~~~~~~~~~~~~~~~~~~~~~
xlsparse.c:373:37: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
short int formatIndex = getshort(rec,2);
^~~
./catdoc.h:235:38: note: passing argument to parameter 'buffer' here
unsigned int getshort(unsigned char *buffer,int offset);
^
xlsparse.c:490:8: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
for (s=*src,d=dest,i=0;i<count;i++,s+=charsize) {
^~~~~
xlsparse.c:502:31: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
u=(unsigned short)getshort(s,0);
^
./catdoc.h:235:38: note: passing argument to parameter 'buffer' here
unsigned int getshort(unsigned char *buffer,int offset);
^
xlsparse.c:526:6: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign]
*src=s+to_skip;
^~~~~~~~~~
xlsparse.c:716:26: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
value=(double)(getlong(rec,0)>>2);
^~~
./catdoc.h:233:33: note: passing argument to parameter 'buffer' here
long int getlong(unsigned char *buffer,int offset);
^
xlsparse.c:762:20: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
sstsize = getlong(sstbuf+4,0);
^~~~~~~~
./catdoc.h:233:33: note: passing argument to parameter 'buffer' here
long int getlong(unsigned char *buffer,int offset);
^
xlsparse.c:770:37: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign]
for (i=0,parsedString=sst,curString=sstbuf+8;
^~~~~~~~~
xlsparse.c:773:17: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign]
*parsedString = copy_unicode_string(&curString);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
55 warnings generated.
gcc -o xls2csv xls2csv.o sheet.o xlsparse.o charsets.o substmap.o fileutil.o confutil.o numutils.o ole.o -lm
gcc -I. -g -O2 -Wall -DHAVE_CONFIG_H -DCATDOC_VERSION=\"0.94.2\" -DCHARSETPATH=\"/usr/local/share/catdoc\" -DSYSTEMRC=\"/usr/local/etc/catdocrc\" -DUSERRC=\".catdocrc\" -DHAVE_CONFIG_H -c -o catppt.o catppt.c
gcc -I. -g -O2 -Wall -DHAVE_CONFIG_H -DCATDOC_VERSION=\"0.94.2\" -DCHARSETPATH=\"/usr/local/share/catdoc\" -DSYSTEMRC=\"/usr/local/etc/catdocrc\" -DUSERRC=\".catdocrc\" -DHAVE_CONFIG_H -c -o pptparse.o pptparse.c
pptparse.c:155:32: warning: passing 'char [2]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
u=(unsigned short)getshort(buf,0);
^~~
./catdoc.h:235:38: note: passing argument to parameter 'buffer' here
unsigned int getshort(unsigned char *buffer,int offset);
^
1 warning generated.
gcc -o catppt catppt.o pptparse.o charsets.o substmap.o fileutil.o confutil.o numutils.o ole.o -lm
echo "#! /usr/bin/wish" >wordview
echo set charset_lib "\"/usr/local/share/catdoc\"">>wordview
cat wordview.tcl >>wordview
chmod 0755 wordview
touch build
make[1]: Nothing to be done for `all'.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment