You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Example which gives the FP:
#define uptr_field_addr(obj, field) \
({ \
(typeof(&((typeof(obj))0)->field)) \
((char *)(obj) + (size_t)&((typeof(obj))0)->field); \
})
ERROR: Macro argument 'field' may be better as '(field)' to avoid
precedence issues
And using () around `field` won't compile.
Closestarantool#43
nshy
added a commit
to nshy/checkpatch
that referenced
this issue
Oct 4, 2022
Example which gives the FP:
#define uptr_field_addr(obj, field) \
({ \
(typeof(&((typeof(obj))0)->field)) \
((char *)(obj) + (size_t)&((typeof(obj))0)->field); \
})
ERROR: Macro argument 'field' may be better as '(field)' to avoid
precedence issues
And using () around `field` won't compile.
Closestarantool#43
Example which gives the FP:
#define uptr_field_addr(obj, field) \
({ \
(typeof(&((typeof(obj))0)->field)) \
((char *)(obj) + (size_t)&((typeof(obj))0)->field); \
})
ERROR: Macro argument 'field' may be better as '(field)' to avoid
precedence issues
And using () around `field` won't compile.
Closes#43
And the trigger is:
Using brackets around
field
won't compile unfortunately.The text was updated successfully, but these errors were encountered: