Skip to content

Commit

Permalink
search_expr.c: Remove unused search_op_name
Browse files Browse the repository at this point in the history
Due to the way search_expr.c is linked in with cunit tests, this
variable causes an odr violation that's detected by asan.
  • Loading branch information
wolfsage committed Feb 12, 2025
1 parent e9a3955 commit f115538
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 18 deletions.
16 changes: 0 additions & 16 deletions imap/search_expr.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,22 +72,6 @@ static search_expr_t **the_rootp;
static search_expr_t *the_focus;
#endif

/* keep this in sync with enum search_op in search_expr.h */
EXPORTED const char *search_op_name[] = {
"SEOP_UNKNOWN",
"SEOP_TRUE",
"SEOP_FALSE",
"SEOP_LT",
"SEOP_LE",
"SEOP_GT",
"SEOP_GE",
"SEOP_MATCH",
"SEOP_FUZZYMATCH",
"SEOP_AND",
"SEOP_OR",
"SEOP_NOT",
};

static void split(search_expr_t *e,
void (*cb)(const char *, search_expr_t *, search_expr_t *, void *),
void *rock);
Expand Down
2 changes: 0 additions & 2 deletions imap/search_expr.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@
struct protstream;
struct index_state;

/* keep this in sync with search_op_name in search_expr.c */
enum search_op {
SEOP_UNKNOWN,
SEOP_TRUE,
Expand All @@ -71,7 +70,6 @@ enum search_op {
SEOP_OR,
SEOP_NOT,
};
extern const char *search_op_name[];

union search_value {
time_t t;
Expand Down

0 comments on commit f115538

Please sign in to comment.