[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
minor FT2 compilation issues
From: |
Pavel Kankovsky |
Subject: |
minor FT2 compilation issues |
Date: |
Sat, 8 Apr 2000 19:41:28 +0200 (MET DST) |
cc -c -g -O6 -Wall -I../config/unix -I../config -I../include -I../src/base
-Isrc -o obj/ftgrays.o src/ftgrays.c
src/ftgrays.c: In function `render_conic':
src/ftgrays.c:587: warning: left shift count is negative
...
src/ftgrays.c: In function `render_cubic':
src/ftgrays.c:706: warning: left shift count is negative
...
src/ftgrays.c:730: warning: right shift count is negative
...
src/ftgrays.c: In function `Move_To':
src/ftgrays.c:972: warning: right shift count is negative
src/ftgrays.c:973: warning: right shift count is negative
src/ftgrays.c: In function `Line_To':
src/ftgrays.c:985: warning: right shift count is negative
src/ftgrays.c:985: warning: right shift count is negative
*** these warnings are irrelevant because they appear in unreachable
*** pieces of code generated by UPSCALE() and DOWNSCALE() but I suggest
*** to get rid of them anyway; a remark at the definition of PIXEL_BITS
*** says it has to be at least 6 anyway...is the alternative definition
*** necessary? even if it is, you could replace a conditional expression
*** with #if PIXEL_SIZE >= 6 ... #else ... #endif
src/ftgrays.c: In function `grays_render_span':
src/ftgrays.c:1022: warning: implicit declaration of function `memset'
src/ftgrays.c: At top level:
src/ftgrays.c:1022: warning: previous external decl of `memset'
In file included from ../src/base/ftobjs.h:117,
from src/ftgrays.c:1427:
/usr/include/string.h:59: warning: type mismatch with previous implicit
declaration
src/ftgrays.c:1022: warning: previous implicit declaration of `memset'
/usr/include/string.h:59: warning: `memset' was previously implicitly
declared to return `int'
*** you should include <string.h> if you intend to use memset()
cc -o bin/ftstring obj/ftstring.o ../obj/libfreetype.a obj/common.o
obj/graph.a -L/usr/X11R6/lib -lX11 obj/ftgrays.o
obj/ftstring.o: In function `main':
/home/peak/freetype/freetype2/demos/src/ftstring.c:408: undefined
reference to `cos'
/home/peak/freetype/freetype2/demos/src/ftstring.c:409: undefined
reference to `sin'
*** -lm is missing somewhere
cc -c -g -O6 -Wall -I../config/unix -I../config -I../include -I../src/base
-Isrc -I../src/shared -I../src/truetype -o obj/ttdebug.o src/ttdebug.c
-DUNIX -DHAVE_POSIX_TERMIOS
src/ttdebug.c: In function `RunIns':
src/ttdebug.c:814: warning: `oldch' might be used uninitialized in this
function
cc -o bin/ttdebug obj/ttdebug.o ../obj/libfreetype.a
*** it is used in the following piece of code
/* a return indicate the last command */
if (ch == '\r')
ch = oldch;
*** if the first key pressed by the user is enter, oldch has not
*** been initialized yet
--Pavel Kankovsky aka Peak [ Boycott Microsoft--http://www.vcnet.com/bms ]
"Resistance is futile. Open your source code and prepare for assimilation."
- minor FT2 compilation issues,
Pavel Kankovsky <=