[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Problems making lpeg on Suse 10.2 64bit
- From: eugeny gladkih <john@...>
- Date: Thu, 25 Oct 2007 23:05:00 +0400
>>>>> "RI" == Roberto Ierusalimschy <roberto@inf.puc-rio.br> writes:
>> ---- Error Message:
>>
>> dhcppc1:/usr/local/lpeg-0.7 # make
>> gcc -O2 -DNDEBUG -Wall -Wextra -pedantic -Waggregate-return -Wcast-align -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wshadow -Wwrite-strings -Wcast-qual -ansi -I../lua -shared -o lpeg.so lpeg.c
>> lpeg.c: In function ‘printinst’:
>> lpeg.c:262: warning: format ‘%02d’ expects type ‘int’, but argument 2 has type ‘long int’
>> lpeg.c:270: warning: format ‘%d’ expects type ‘int’, but argument 2 has type ‘long int’
>> lpeg.c:279: warning: format ‘%d’ expects type ‘int’, but argument 2 has type ‘long int’
>> lpeg.c:298: warning: format ‘%d’ expects type ‘int’, but argument 2 has type ‘long int’
>> lpeg.c:306: warning: format ‘%d’ expects type ‘int’, but argument 2 has type ‘long int’
>> lpeg.c:311: warning: format ‘%d’ expects type ‘int’, but argument 2 has type ‘long int’
>> lpeg.c: At top level:
>> lpeg.c:330: warning: ‘printcap’ defined but not used
RI> These warnings are all related to debug information. If you do not print
RI> patterns, you can just ignore them. (BTW, does 'long' in
RI> your machine have 64 bits?)
sure!
> cat t-sizeof.c
#include <stdio.h>
int main( int, char** ) {
printf( "char=%lu short=%lu int=%lu long=%lu "
#if !defined( _WIN32 )
"longlong=%lu"
#endif
" size_t=%lu void*=%lu\n",
(unsigned long)sizeof( char ),
(unsigned long)sizeof( short ),
(unsigned long)sizeof( int ),
(unsigned long)sizeof( long ),
#if !defined( _WIN32 )
(unsigned long)sizeof( long long ),
#endif
(unsigned long)sizeof( size_t ),
(unsigned long)sizeof( void* ) );
return 0;
}
>./t-sizeof
char=1 short=2 int=4 long=8 longlong=8 size_t=8 void*=8
there is only one warning compiling Lua 5.1 itself for x86_64:
src/loadlib.c: In function 'll_sym':
src/loadlib.c:76: warning: ISO C forbids conversion of object pointer to function pointer type
but it's gcc 4.2 related one
--
Yours sincerely, Eugeny.
Doctor Web, Ltd. http://www.drweb.com