normanr opened a new pull request, #1196:
URL: https://github.com/apache/incubator-nuttx-apps/pull/1196

   ## Summary
   Similar to #1134: This fixes the sta_mode field data type which causes:
   ```c
   src/wapi.c: In function 'wapi_save_config_cmd':
   src/wapi.c:866:38: warning: passing argument 3 of 'wapi_get_mode' from 
incompatible pointer type [-Wincompatible-pointer-types]
     866 |   ret = wapi_get_mode(sock, argv[0], &conf.sta_mode);
         |                                      ^~~~~~~~~~~~~~
         |                                      |
         |                                      uint8_t * {aka unsigned char *}
   In file included from src/wapi.c:55:
   ../apps/include/wireless/wapi.h:508:41: note: expected 'enum wapi_mode_e *' 
but argument is of type 'uint8_t *' {aka 'unsigned char *'}
     508 |                   FAR enum wapi_mode_e *mode);
         |                       ~~~~~~~~~~~~~~~~~~^~~~
   ```
   
   ## Impact
   Make `wireless/wapi` compile without warnings.
   
   ## Testing
   Built wapi, and used it to save_config (which was broken without the fix 
from #1134 and continues to work with this fix)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to