warn if testing the address of an array
commit4480ef07d1187395ea8b277174ac2545254b40f0
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>
Wed, 22 Mar 2017 16:27:22 +0000 (22 17:27 +0100)
committerLuc Van Oostenryck <luc.vanoostenryck@gmail.com>
Wed, 22 Mar 2017 17:24:41 +0000 (22 18:24 +0100)
treebae417c4d5d0c61e43d2a461f5a478346965b6c5
parenteccfa2c15c5cc529a1cb998f59bf1dc799ed4004
warn if testing the address of an array

Testing the address of an array 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).
evaluate.c
validation/cond-address-array.c [new file with mode: 0644]