wmaker: add script to check the call-back function used when loading configuration
commitba3e57597192dc6548ea68adb4f92d1f60187411
authorChristophe CURIS <christophe.curis@free.fr>
Fri, 8 May 2015 11:18:59 +0000 (8 13:18 +0200)
committerCarlos R. Mafra <crmafra@gmail.com>
Fri, 8 May 2015 17:53:29 +0000 (8 18:53 +0100)
tree2e2f03b49bb36a35ba8d9d2645bb0584324a10c8
parent3d6da4b2108c3a668d9a824a3a6ae9b8741f3df2
wmaker: add script to check the call-back function used when loading configuration

Because the C compiler cannot check the consistency between the type of the
variable being pointed to, and the type expected by the call-back function
that is used to parse and store the value from the configuration file,
there is a risk of mismatch that can cause Window Maker to misbehave due to
data corruption, which depends strongly on the configuration values and the
architecture on which Window Maker is running.

This patch introduces a script that checks the consistency where possible, to
raise the issues when performing "make check".

Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
Makefile.am
script/check-wmaker-loaddef-callbacks.sh [new file with mode: 0755]
src/Makefile.am