revert C99 test - typo in fallthrough macro
This commit is contained in:
@@ -26,7 +26,7 @@
|
|||||||
#if __has_attribute(__fallthrough__)
|
#if __has_attribute(__fallthrough__)
|
||||||
# define fallthrough __attribute__((__fallthrough__))
|
# define fallthrough __attribute__((__fallthrough__))
|
||||||
#else
|
#else
|
||||||
# define fallthrough do {} while (0); /* fallthrough */
|
# define fallthrough do {} while (0) /* fallthrough */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* See GNUmakefile below for explanation
|
/* See GNUmakefile below for explanation
|
||||||
|
@@ -130,8 +130,7 @@ void list_delete(const struct list *list, const ll_data_t data)
|
|||||||
*/
|
*/
|
||||||
void list_destroy(struct list *list)
|
void list_destroy(struct list *list)
|
||||||
{
|
{
|
||||||
struct list_head *cur;
|
struct list_head *cur, *tmp;
|
||||||
__typeof(cur) tmp;
|
|
||||||
|
|
||||||
list_for_each_safe(cur, tmp, (struct list_head *)list)
|
list_for_each_safe(cur, tmp, (struct list_head *)list)
|
||||||
_list_del(cur);
|
_list_del(cur);
|
||||||
|
Reference in New Issue
Block a user