warn if testing the address of a function
commit7b6694c40b3329b858f89b91b35e6e64f1c9c4f6
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>
Wed, 22 Mar 2017 15:50:12 +0000 (22 16:50 +0100)
committerLuc Van Oostenryck <luc.vanoostenryck@gmail.com>
Wed, 22 Mar 2017 17:24:41 +0000 (22 18:24 +0100)
treeab8d971cd47b016fcdcaca80f35570b3c5d4f2cd
parente4a026a56afbba1f722e541b8fbb71f65fc80a15
warn if testing the address of a function

Testing the address of a function is quite suspicious:
it's most probably the sign of an error somewhere.
Furthermore, such uses always evaluate to true.

So, add a warning about such use (but only if -Waddress was given).

Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
evaluate.c
validation/cond-address-function.c [new file with mode: 0644]