core: avoid accessing opaque NMSetting type

Next, NMSetting will be hidden from public headers and become an opaque type.
We cannot do typeof(*setting) anymore.

(cherry picked from commit 0d6c35a6d9)
This commit is contained in:
Thomas Haller 2021-06-11 15:35:15 +02:00
parent 709b497938
commit f07c135c42
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728

View file

@ -666,8 +666,8 @@ add_string_val(NMSupplicantConfig *self,
display_value, \
error) \
({ \
typeof(*(setting)) *_setting = (setting); \
gboolean _success = TRUE; \
typeof(setting) _setting = (setting); \
gboolean _success = TRUE; \
\
if (nm_setting_##setting_name##_get_num_##field_plural(_setting)) { \
const char _separator = (separator); \