diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2018-12-19 22:17:25 +0300 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2018-12-19 22:17:25 +0300 |
commit | a25965b5f0ce893d07274256ff2391d480924b59 (patch) | |
tree | d62ee3e46284b88287175c92cc1b313526e0bc2b /os_dep.c | |
parent | 33a4621f4790362a994cf4bcea09758e06fbb1ac (diff) | |
download | bdwgc-a25965b5f0ce893d07274256ff2391d480924b59.tar.gz |
Workaround '__data_start<_etext is always false' cppcheck false positive
* os_dep.c [SEARCH_FOR_DATA_START && (LINUX || HURD)
&& !IGNORE_PROG_DATA_START && HOST_ANDROID] (GC_init_linux_data_start):
Skip the workaround for "gold" linker if CPPCHECK.
Diffstat (limited to 'os_dep.c')
-rw-r--r-- | os_dep.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -436,7 +436,7 @@ GC_INNER char * GC_get_maps(void) # if (defined(LINUX) || defined(HURD)) && !defined(IGNORE_PROG_DATA_START) /* Try the easy approaches first: */ -# ifdef HOST_ANDROID +# if defined(HOST_ANDROID) && !defined(CPPCHECK) /* Workaround for "gold" (default) linker (as of Android NDK r10e). */ if ((word)__data_start < (word)_etext && (word)_etext < (word)__dso_handle) { |