Skip to content

Commit bbad43a

Browse files
committed
data: Remove redundant redefinition of APPEND_EXPR macro
The original commit which added the optimization pass (commit 06964d7) contained a duplicate definition of the APPEND_EXPR macro, apparently by accident. Because it was an exact duplicate of the existing definition no compiler warning was generated. Fixes: commit 06964d7
1 parent 7b9471a commit bbad43a

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

plugins/data/format.c

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1007,18 +1007,8 @@ optimize_ast (node_id root, node_id *root_rtn)
10071007

10081008
switch (get_node (root)->t) {
10091009
case EXPR_LIST:
1010-
/* Optimize each element of the list. For convenience this
1011-
* builds a new node.
1012-
*/
1010+
/* Optimize each element of the list. */
10131011
e.t = EXPR_LIST;
1014-
#define APPEND_EXPR \
1015-
do { \
1016-
node_id _id = new_node (e); \
1017-
if (node_ids_append (&list, _id) == -1) { \
1018-
nbdkit_error ("realloc: %m"); \
1019-
exit (EXIT_FAILURE); \
1020-
} \
1021-
} while (0)
10221012

10231013
for (i = 0; i < get_node (root)->list.size; ++i) {
10241014
id = get_node (root)->list.ptr[i];

0 commit comments

Comments
 (0)