Z-Pocket Game Pro(ZPG Pro)

解決"warning: ~ on a boolean expression [-Wbool-operation]"問題


問題如下:

  CC [M]  drivers/net/wireless/rtl8821cu/hal/phydm/halrf/rtl8821c/halrf_iqk_8821c.o
drivers/net/wireless/rtl8821cu/hal/phydm/halrf/rtl8821c/halrf_iqk_8821c.c: In function '_iqk_reload_iqk_setting_8821c':
drivers/net/wireless/rtl8821cu/hal/phydm/halrf/rtl8821c/halrf_iqk_8821c.c:579:49: warning: '~' on a boolean expression [-Wbool-operation]
error, forbidden warning:halrf_iqk_8821c.c:579
     odm_set_bb_reg(dm, iqk_apply[path], BIT(0), ~(iqk_info->iqk_fail_report[channel][path][idx]));
                                                 ^
drivers/net/wireless/rtl8821cu/hal/phydm/halrf/rtl8821c/halrf_iqk_8821c.c:579:49: note: did you mean to use logical not?
     odm_set_bb_reg(dm, iqk_apply[path], BIT(0), ~(iqk_info->iqk_fail_report[channel][path][idx]));
                                                 ^
                                                 !
drivers/net/wireless/rtl8821cu/hal/phydm/halrf/rtl8821c/halrf_iqk_8821c.c:581:50: warning: '~' on a boolean expression [-Wbool-operation]
error, forbidden warning:halrf_iqk_8821c.c:581
     odm_set_bb_reg(dm, iqk_apply[path], BIT(10), ~(iqk_info->iqk_fail_report[channel][path][idx]));
                                                  ^
drivers/net/wireless/rtl8821cu/hal/phydm/halrf/rtl8821c/halrf_iqk_8821c.c:581:50: note: did you mean to use logical not?
     odm_set_bb_reg(dm, iqk_apply[path], BIT(10), ~(iqk_info->iqk_fail_report[channel][path][idx]));
                                                  ^
                                                  !
make[4]: *** [scripts/Makefile.build:278: drivers/net/wireless/rtl8821cu/hal/phydm/halrf/rtl8821c/halrf_iqk_8821c.o] Error 1
make[3]: *** [scripts/Makefile.build:484: drivers/net/wireless/rtl8821cu] Error 2
make[2]: *** [scripts/Makefile.build:484: drivers/net/wireless] Error 2
make[1]: *** [scripts/Makefile.build:484: drivers/net] Error 2
make: *** [Makefile:1036: drivers] Error 2

解法

$ vim Makefile +386
  CFLAGS_MODULE = -Wno-bool-operation


返回上一頁