]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/network/networkd-gperf.gperf
tree-wide: adjust fall through comments so that gcc is happy
[thirdparty/systemd.git] / src / network / networkd-gperf.gperf
index 3ef4155476a64994f05cf563e02cd3a68ddf746a..54161446bba942bd58fe25dd4a4b9cf9a9de26e5 100644 (file)
@@ -1,7 +1,11 @@
 %{
+#if __GNUC__ >= 7
+_Pragma("GCC diagnostic ignored \"-Wimplicit-fallthrough\"")
+#endif
 #include <stddef.h>
 #include "conf-parser.h"
 #include "networkd-conf.h"
+#include "networkd-manager.h"
 %}
 struct ConfigPerfItem;
 %null_strings
@@ -14,5 +18,5 @@ struct ConfigPerfItem;
 %struct-type
 %includes
 %%
-DUID.Type,           config_parse_dhcp_duid_type,            0,            offsetof(Manager, dhcp_duid_type)
-DUID.RawData,        config_parse_dhcp_duid_raw,             0,            offsetof(Manager, dhcp_duid)
+DHCP.DUIDType,              config_parse_duid_type,                 0,          offsetof(Manager, duid.type)
+DHCP.DUIDRawData,           config_parse_duid_rawdata,              0,          offsetof(Manager, duid)