Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Unity-Technologies/bdwgc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2017-03-22 00:37:06 +0300
committerIvan Maidanski <ivmai@mail.ru>2017-03-22 00:38:56 +0300
commitc179eecedf07c1ee6d7d71b2841021bbfb522601 (patch)
treecc7e39403199d46102de0a40fcedcb4a615012af /dyn_load.c
parentded6139769d21e6d19d30a0ec21b06e0058ffd10 (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.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/dyn_load.c b/dyn_load.c
index 0520577a..69f637c5 100644
--- a/dyn_load.c
+++ b/dyn_load.c
@@ -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");