Commit 642b380c authored by Michael Catanzaro's avatar Michael Catanzaro
Browse files

Add very limited usage of Werror

We should never allow implicit-function-declaration errors.

Also, although the advisibility of putting all declarations at the top
of functions is highly questionable, it's our existing code style, very
common in GNOME, and it's useful to enforce this.
parent 87cfac4c
Pipeline #116942 passed with stage
in 1 minute and 56 seconds
......@@ -33,6 +33,10 @@ common_flags = [
add_project_arguments(common_flags, language: 'c')
cflags = cc.get_supported_arguments(['-Werror=declaration-after-statement',
'-Werror=implicit-function-declaration'])
add_project_arguments(cflags, language: 'c')
symbol_map = join_paths(meson.current_source_dir(), meson.project_name() + '.map')
module_ldflags = []
......
......@@ -2593,11 +2593,11 @@ GTLS_DEBUG (gpointer connection,
...)
{
char *result = NULL;
va_list args;
int ret;
g_assert (G_IS_TLS_CONNECTION (connection));
va_list args;
va_start (args, message);
ret = g_vasprintf (&result, message, args);
......
......@@ -2252,14 +2252,14 @@ test_alpn (TestConnection *test,
const char * const *server_protocols,
const char *negotiated_protocol)
{
GIOStream *connection;
GError *error = NULL;
#ifdef BACKEND_IS_OPENSSL
g_test_skip ("this is not yet passing with openssl");
return;
#endif
GIOStream *connection;
GError *error = NULL;
test->server_protocols = server_protocols;
test->database = g_tls_file_database_new (tls_test_file_path ("ca-roots.pem"), &error);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment