You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by pk...@apache.org on 2022/11/13 13:55:39 UTC

[incubator-nuttx-apps] 03/05: Fix Error: src/wapi.c:1050:14: error: implicit conversion from enumeration type 'enum wapi_mode_e' to different enumeration type 'enum wapi_pta_prio_e' [-Werror,-Wenum-conversion]

This is an automated email from the ASF dual-hosted git repository.

pkarashchenko pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx-apps.git

commit bf03439d1ba6288464f413c631e5dcfaec501d3f
Author: Xiang Xiao <xi...@xiaomi.com>
AuthorDate: Sun Nov 13 10:59:52 2022 +0800

    Fix Error: src/wapi.c:1050:14: error: implicit conversion from enumeration type 'enum wapi_mode_e' to different enumeration type 'enum wapi_pta_prio_e' [-Werror,-Wenum-conversion]
    
    Signed-off-by: Xiang Xiao <xi...@xiaomi.com>
---
 wireless/wapi/src/wapi.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/wireless/wapi/src/wapi.c b/wireless/wapi/src/wapi.c
index 191cc4b97..84a5b9ee5 100644
--- a/wireless/wapi/src/wapi.c
+++ b/wireless/wapi/src/wapi.c
@@ -1047,7 +1047,8 @@ static int wapi_pta_prio_cmd(int sock, int argc, FAR char **argv)
 
   /* Convert input strings to values */
 
-  pta_prio = (enum wapi_mode_e)wapi_str2ndx(argv[1], g_wapi_pta_prio_flags);
+  pta_prio = (enum wapi_pta_prio_e)
+    wapi_str2ndx(argv[1], g_wapi_pta_prio_flags);
 
   /* Set operating mode */