libnm-glib: work around possible compiler bug with GValueArray deprecation workarounds
GValueArray is deprecated. Unfortunately, it's part of our API right now, so we have to keep it around for a while. But since it's deprecated, and we want to know about *other* deprecations, we have to suppress deprecations about GValueArray. Unfortunately using macros to do that (eg in nm-gvaluearray-compat.h) exposes some compiler bugs due to the combination of parentheses/braces and #pragma from G_GNUC_BEGIN_IGNORE_DEPRECATIONS, resulting in warnings like: nm-utils.c:920:9: error: expected expression before ‘#pragma’ Work around this by not trying to stuff what's now a macro (eg g_value_array_get_nth) into what's already a macro (G_VALUE_TYPE). There's probably a better way to do this...
Showing with 42 additions and 27 deletions