diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2017-03-22 00:37:06 +0300 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2017-03-22 00:38:56 +0300 |
commit | c179eecedf07c1ee6d7d71b2841021bbfb522601 (patch) | |
tree | cc7e39403199d46102de0a40fcedcb4a615012af /dyn_load.c | |
parent | ded6139769d21e6d19d30a0ec21b06e0058ffd10 (diff) |
Remove lint-specific code
Note: cppcheck and CSA replace lint tool.
* Makefile.direct (lint): Remove.
* dyn_load.c [SOLARISDL && !USE_PROC_FOR_LIBRARIES && LINT] (_DYNAMIC):
Remove.
* dyn_load.c [IRIX5 || (USE_PROC_FOR_LIBRARIES && !LINUX)]
(GC_register_dynamic_libraries): Remove comment about a false warning
reported by lint.
* mach_dep.c [ASM_CLEAR_CODE && LINT] (GC_clear_stack_inner): Remove.
* tests/test.c (typed_test): Call GC_make_descriptor unconditionally.
* tests/test.c (run_one_test): Set y to fail_proc1 unconditionally.
* tests/test.c (main): Do not check whether LINT is defined.
Diffstat (limited to 'dyn_load.c')
-rw-r--r-- | dyn_load.c | 6 |
1 files changed, 0 insertions, 6 deletions
@@ -159,10 +159,6 @@ STATIC GC_has_static_roots_func GC_has_static_roots = 0; #if defined(SOLARISDL) && !defined(USE_PROC_FOR_LIBRARIES) -#ifdef LINT - Elf32_Dyn _DYNAMIC; -#endif - STATIC struct link_map * GC_FirstDLOpenedLinkMap(void) { @@ -809,8 +805,6 @@ GC_INNER void GC_register_dynamic_libraries(void) if (fd < 0) { (void)snprintf(buf, sizeof(buf), "/proc/%ld", (long)getpid()); buf[sizeof(buf) - 1] = '\0'; - /* The above generates a lint complaint, since pid_t varies. */ - /* It's unclear how to improve this. */ fd = open(buf, O_RDONLY); if (fd < 0) { ABORT("/proc open failed"); |