javalikescript / webview-c

A tiny cross-platform webview C library to build modern cross-platform GUIs
Other
61 stars 9 forks source link

Warning due to unused statics #4

Closed edubart closed 3 years ago

edubart commented 3 years ago

When including webview.h with -Wall -Wextra without implementation, the following warning appears:

webview.h:149:20: warning: ‘webview_check_url’ defined but not used [-Wunused-function]
  149 | static const char *webview_check_url(const char *url) {

It could be moved to the implementation section, other symbols like DEFAULT_URL and CSS_INJECT_FUNCTION could also go with it.