toolchain/wrapper: use the {str, len} tuples for the unsafe paths
authorYann E. MORIN <yann.morin.1998@free.fr>
Sun, 4 Dec 2016 09:21:56 +0000 (10:21 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 11 Dec 2016 14:45:06 +0000 (15:45 +0100)
commit3eccf762016d2e75911a20bf319e7f15776ae159
tree9f7873b59dbd607a5c70b1e8a5415fe52253077c
parent31c093e6d094194ca61ed476016ed1649c972382
toolchain/wrapper: use the {str, len} tuples for the unsafe paths

In 61cb120 (toolchain/wrapper: extend paranoid check to -isystem), we
introduced a {str,len} tuple to check the various arguments pased to
gcc, to avoid hard-coding an ever-growing, long list of those args
directly in the condition check.

Now, we're left with a long list of unsafe paths, somehow hidden within
the code, which can use the same mechanism we use for arguments.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
toolchain/toolchain-wrapper.c