From 0c3531efe702768b3aa71c1ff0fe8e3983f1a295 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sat, 16 Dec 2017 17:08:36 +0100 Subject: [PATCH] Fix gcc4 builds "GCC diagnostic not allowed inside functions" --- libs/backends/jack/weak_libjack.def | 3 --- 1 file changed, 3 deletions(-) diff --git a/libs/backends/jack/weak_libjack.def b/libs/backends/jack/weak_libjack.def index e50237df06..4a8d9e8de9 100644 --- a/libs/backends/jack/weak_libjack.def +++ b/libs/backends/jack/weak_libjack.def @@ -70,10 +70,7 @@ JPFUN(1, const char *, port_type, (const jack_port_t *p), (p), 0) JPFUN(1, const char **, port_get_connections, (const jack_port_t *p), (p), 0) JPFUN(1, const char **, port_get_all_connections, (const jack_client_t *c, const jack_port_t *p), (c,p), 0) JPFUN(1, int, port_set_name, (jack_port_t *p, const char *n), (p,n), -1) -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wdeprecated-declarations" JXFUN(0, int, port_rename, (jack_client_t *c, jack_port_t *p, const char *n), (c,p,n), return jack_port_set_name (p,n);) -#pragma GCC diagnostic pop JPFUN(1, int, port_get_aliases, (const jack_port_t *port, char* const aliases[2]), (port,aliases), 0) JPFUN(1, int, port_disconnect, (jack_client_t *c, jack_port_t *p), (c,p), 0) JPFUN(1, int, connect, (jack_client_t *c, const char *s, const char *d), (c,s,d), -1)