summaryrefslogtreecommitdiff
path: root/src/dhcp-manager/systemd-dhcp/src/shared/macro.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/dhcp-manager/systemd-dhcp/src/shared/macro.h')
-rw-r--r--src/dhcp-manager/systemd-dhcp/src/shared/macro.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/dhcp-manager/systemd-dhcp/src/shared/macro.h b/src/dhcp-manager/systemd-dhcp/src/shared/macro.h
index 9ee332c8df..e6cf6eecd7 100644
--- a/src/dhcp-manager/systemd-dhcp/src/shared/macro.h
+++ b/src/dhcp-manager/systemd-dhcp/src/shared/macro.h
@@ -373,17 +373,18 @@ do { \
#define IN_SET(x, y, ...) \
({ \
const typeof(y) _y = (y); \
- const typeof(_y) _x = (x); \
+ typeof(_y) _x = (x); \
unsigned _i; \
bool _found = false; \
- for (_i = 0; _i < 1 + sizeof((const typeof(_x)[]) { __VA_ARGS__ })/sizeof(const typeof(_x)); _i++) \
- if (((const typeof(_x)[]) { _y, __VA_ARGS__ })[_i] == _x) { \
+ for (_i = 0; _i < 1 + sizeof((typeof(_x)[]) { __VA_ARGS__ })/sizeof(typeof(_x)); _i++) \
+ if (((typeof(_x)[]) { _y, __VA_ARGS__ })[_i] == _x) { \
_found = true; \
break; \
} \
_found; \
})
+#if 0 /* NM_IGNORED */
/* Define C11 thread_local attribute even on older gcc compiler
* version */
#ifndef thread_local
@@ -409,3 +410,4 @@ do { \
#endif
#include "log.h"
+#endif