Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mgos_config_wifi_sta changed to use const char build fails #5

Closed
tripflex opened this issue Jun 24, 2019 · 0 comments

Comments

Projects
None yet
1 participant
@tripflex
Copy link
Owner

commented Jun 24, 2019

/deps/captive-portal-wifi-setup/src/mgos_captive_portal_wifi_setup.c: In function 'clear_timeout_vals':
/deps/captive-portal-wifi-setup/src/mgos_captive_portal_wifi_setup.c:47:38: error: passing argument 2 of 's_wifi_setup_test_cb' discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers]
         s_wifi_setup_test_cb( false, sp_test_sta_vals->ssid, sp_test_sta_vals->pass, s_wifi_setup_test_userdata );
                                      ^
/deps/captive-portal-wifi-setup/src/mgos_captive_portal_wifi_setup.c:47:38: note: expected 'char *' but argument is of type 'const char *'
/deps/captive-portal-wifi-setup/src/mgos_captive_portal_wifi_setup.c:47:62: error: passing argument 3 of 's_wifi_setup_test_cb' discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers]
         s_wifi_setup_test_cb( false, sp_test_sta_vals->ssid, sp_test_sta_vals->pass, s_wifi_setup_test_userdata );
                                                              ^
/deps/captive-portal-wifi-setup/src/mgos_captive_portal_wifi_setup.c:47:62: note: expected 'char *' but argument is of type 'const char *'
/deps/captive-portal-wifi-setup/src/mgos_captive_portal_wifi_setup.c: In function 'ip_aquired_cb':
/deps/captive-portal-wifi-setup/src/mgos_captive_portal_wifi_setup.c:154:41: error: passing argument 2 of 's_wifi_setup_test_cb' discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers]
             s_wifi_setup_test_cb( true, sp_test_sta_vals->ssid, sp_test_sta_vals->pass, s_wifi_setup_test_userdata );
                                         ^
/deps/captive-portal-wifi-setup/src/mgos_captive_portal_wifi_setup.c:154:41: note: expected 'char *' but argument is of type 'const char *'
/deps/captive-portal-wifi-setup/src/mgos_captive_portal_wifi_setup.c:154:65: error: passing argument 3 of 's_wifi_setup_test_cb' discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers]
             s_wifi_setup_test_cb( true, sp_test_sta_vals->ssid, sp_test_sta_vals->pass, s_wifi_setup_test_userdata );
                                                                 ^
/deps/captive-portal-wifi-setup/src/mgos_captive_portal_wifi_setup.c:154:65: note: expected 'char *' but argument is of type 'const char *'

Related #3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.