Firefly开源社区

打印 上一主题 下一主题

在编译中出中cc1: all warnings being treated as errors就编不下去了

35

积分

0

威望

0

贡献

技术小白

积分
35

在编译中出中cc1: all warnings being treated as errors就编不下去了

发表于 2016-6-16 11:28:26      浏览:6234 | 回复:0        打印      只看该作者   [复制链接] 楼主
报错的代码,帮帮忙怎么解决,谢谢各位大侠,我找了好久都没有解决这个问题

CC      net/sched/act_api.o
  CC      net/wireless/sysfs.o
  CC      net/wireless/radiotap.o
  CC      drivers/amlogic/input/new_remote/remote_main.o
  CC      net/unix/garbage.o
  CC      fs/jbd/recovery.o
  CC      net/wireless/util.o
  CC      drivers/amlogic/ionvideo/ppmgr2.o
  CC      drivers/amlogic/hdmi/hdmi_tx/hdmi_tx_video.o
  CC      net/wireless/reg.o
  CC      net/sched/act_police.o
/home/fig/android/0823originnew/common/drivers/amlogic/input/new_remote/remote_main.c: In function ‘remote_probe’:
/home/fig/android/0823originnew/common/drivers/amlogic/input/new_remote/remote_main.c:704:33: error: iteration 6u invokes undefined behavior [-Werror=aggressive-loop-optimizations]
   mouse_map[remote->map_num][i] = 0xffff;
                                 ^
/home/fig/android/0823originnew/common/drivers/amlogic/input/new_remote/remote_main.c:703:2: note: containing loop
  for (i = 0; i < ARRAY_SIZE(mouse_map); i++) {
  ^
cc1: all warnings being treated as errors
make[6]: *** [drivers/amlogic/input/new_remote/remote_main.o] 错误 1
make[5]: *** [drivers/amlogic/input/new_remote] 错误 2
make[4]: *** [drivers/amlogic/input] 错误 2
make[4]: *** 正在等待未完成的任务....
  CC      net/sched/act_gact.o
  CC      drivers/amlogic/hdmi/hdmi_tx/hdmi_tx_audio.o
  CC      fs/jbd/checkpoint.o
  CC      net/unix/sysctl_net_unix.o
  LD      drivers/amlogic/ionvideo/built-in.o
  CC      net/unix/diag.o
  CC      drivers/amlogic/hdmi/hdmi_tx/hdmi_tx_edid.o
  CC      net/sched/act_mirred.o
  CC      net/sched/sch_fifo.o
  CC      fs/jbd/revoke.o
  CC      net/wireless/scan.o
  CC      fs/jbd/journal.o
  CC      net/sched/sch_htb.o
  CC      net/wireless/nl80211.o
  CC      net/sched/sch_ingress.o
  LD      net/unix/unix.o
  LD      net/unix/unix_diag.o
  LD      net/unix/built-in.o
  CC      net/sysctl_net.o
  CC      net/xfrm/xfrm_policy.o
  CC      drivers/amlogic/hdmi/hdmi_tx/hdmi_tx_hdcp.o
  CC      net/sched/cls_u32.o
  LD      drivers/amlogic/hdmi/hdmi_tx/hdmitx.o
  LD      drivers/amlogic/hdmi/hdmi_tx/built-in.o
  LD      drivers/amlogic/hdmi/built-in.o
make[3]: *** [drivers/amlogic] 错误 2
make[2]: *** [drivers] 错误 2
make[2]: *** 正在等待未完成的任务....



host C++: libdvm <= dalvik/vm/oo/Resolve.cpp
host C++: libdvm <= dalvik/vm/oo/TypeCheck.cpp
host C++: libdvm <= dalvik/vm/reflect/Annotation.cpp
host C++: libdvm <= dalvik/vm/reflect/Proxy.cpp
host C++: libdvm <= dalvik/vm/reflect/Reflect.cpp
dalvik/vm/reflect/Annotation.cpp: In function 'Object* convertReturnType(Object*, ClassObject*)':
dalvik/vm/reflect/Annotation.cpp:574:18: warning: variable 'srcElemClass' set but not used [-Wunused-but-set-variable]
dalvik/vm/reflect/Annotation.cpp: In function 'const u1* searchEncodedAnnotation(const ClassObject*, const u1*, char const*)':
dalvik/vm/reflect/Annotation.cpp:1122:8: warning: variable 'typeIdx' set but not used [-Wunused-but-set-variable]
  LD      fs/udf/udf.o
host C++: libdvm <= dalvik/vm/test/TestHash.cpp
  LD      fs/udf/built-in.o
host C++: libdvm <= dalvik/vm/test/TestIndirectRefTable.cpp
  LD      fs/built-in.o
host C++: libdvm <= dalvik/vm/os/linux.cpp
host C++: libdvm <= dalvik/vm/alloc/DlMalloc.cpp
host C++: libdvm <= dalvik/vm/alloc/HeapSource.cpp
host C++: libdvm <= dalvik/vm/compiler/Compiler.cpp
make[1]: *** [sub-make] 错误 2
make[1]:正在离开目录 `/home/fig/android/0823originnew/common'
host C++: libdvm <= dalvik/vm/compiler/Frontend.cpp
make: *** [out/target/product/fg_m201_512m/obj/KERNEL_OBJ/arch/arm/boot/uImage] 错误 2
make: *** 正在等待未完成的任务....
dalvik/vm/compiler/Compiler.cpp: In function 'bool dvmCompilerWorkEnqueue(const u2*, WorkOrderKind, void*)':
dalvik/vm/compiler/Compiler.cpp:97:9: warning: variable 'cc' set but not used [-Wunused-but-set-variable]
dalvik/vm/compiler/Compiler.cpp: In function 'void* compilerThreadStart(void*)':
dalvik/vm/compiler/Compiler.cpp:658:17: warning: variable 'cc' set but not used [-Wunused-but-set-variable]
make: *** wait: 没有子进程。 停止。
fig@ubuntu:~/android/0823originnew$
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

友情链接 : 爱板网 电子发烧友论坛 云汉电子社区 粤ICP备14022046号-2
快速回复 返回顶部 返回列表