QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 2080|回复: 0

请问出现下列警告是什么原因造成的?

[复制链接]
发表于 2006-9-12 19:37:01 | 显示全部楼层 |阅读模式
要求Makefile指定正确的X libraies位置,我装的是RedHat 9.0, X libraies所在位置是

/usr/X11R6/lib
我make后,得到一下信息:
[root@localhost xmovie]# make
gcc -c -O2 -finline-functions -g -DMISSINGDEFS -D_POSIX_SOURCE -DUSEPRIVATE -D
INCL_FLOAT -Wimplicit -Wunused -Wmissing-prototypes  xmovie.c
gcc -c -O2 -finline-functions -g -DMISSINGDEFS -D_POSIX_SOURCE -DUSEPRIVATE -D
INCL_FLOAT -Wimplicit -Wunused -Wmissing-prototypes  control.c
gcc -c -O2 -finline-functions -g -DMISSINGDEFS -D_POSIX_SOURCE -DUSEPRIVATE -D
INCL_FLOAT -Wimplicit -Wunused -Wmissing-prototypes  scene.c
scene.c: In function `MotionUpdate':
scene.c:155: warning: passing arg 4 of `XpmWriteFileFromPixmap' makes integer  
from pointer without a cast
scene.c: In function `SceneSave':
scene.c:188: warning: passing arg 4 of `XpmWriteFileFromPixmap' makes integer  
from pointer without a cast
gcc -c -O2 -finline-functions -g -DMISSINGDEFS -D_POSIX_SOURCE -DUSEPRIVATE -D
INCL_FLOAT -Wimplicit -Wunused -Wmissing-prototypes  read.c
read.c: In function `SortData':
read.c:980: warning: passing arg 1 of `hpsort' from incompatible pointer type

read.c:980: warning: passing arg 4 of `hpsort' from incompatible pointer type

gcc -c -O2 -finline-functions -g -DMISSINGDEFS -D_POSIX_SOURCE -DUSEPRIVATE -D
INCL_FLOAT -Wimplicit -Wunused -Wmissing-prototypes  hpsort.c
hpsort.c:11: warning: no previous prototype for `hpsort'
hpsort.c: In function `hpsort':
hpsort.c:18: warning: implicit declaration of function `malloc'
hpsort.c:21: warning: implicit declaration of function `memcpy'
hpsort.c:42: warning: implicit declaration of function `free'
gcc -c -O2 -finline-functions -g -DMISSINGDEFS -D_POSIX_SOURCE -DUSEPRIVATE -D
INCL_FLOAT -Wimplicit -Wunused -Wmissing-prototypes  version.c
gcc -o xmovie -O2 -finline-functions -g  version.o xmovie.o control.o scene.o  
read.o hpsort.o -L/usr/X11R6/lib -lX11 -lXaw

可以看到上面出现了一些warning,请问这是什么原因?
谢谢
您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-2 06:39 , Processed in 0.067183 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表