2 * smatch/check_select.c
4 * Copyright (C) 2010 Dan Carpenter.
6 * Licensed under the Open Software License version 1.1
11 #include "smatch_slist.h"
15 static void match_select(struct expression
*expr
)
19 expr
= strip_expr(expr
->conditional
);
20 if (expr
->type
!= EXPR_COMPARE
)
22 sm_msg("warn: boolean comparison inside select");
25 void check_select(int id
)
28 add_hook(&match_select
, SELECT_HOOK
);