From 5874d2435621fe36322bcb9cf3288c3cd1a97388 Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Wed, 12 Oct 2016 22:42:41 +0300 Subject: [PATCH] Fix missing #error pragma * dyn_load.c [DYNAMIC_LOADING && !PCR && !DARWIN]: Replace "-->" with * dyn_load.c [SOLARISDL && !PCR && !GC_SOLARIS_THREADS && THREADS]: Likewise. * include/private/gc_hdrs [CPP_WORDSZ!=32 && CPP_WORDSZ<36]: Likewise. * include/private/gc_priv.h [!HBLKSIZE]: Likewise. * pthread_stop_world.c [!NSIG]: Likewise. --- dyn_load.c | 6 +++--- include/private/gc_hdrs.h | 2 +- include/private/gc_priv.h | 2 +- pthread_stop_world.c | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/dyn_load.c b/dyn_load.c index c1d5949..cdcebe2 100644 --- a/dyn_load.c +++ b/dyn_load.c @@ -60,8 +60,8 @@ STATIC GC_has_static_roots_func GC_has_static_roots = 0; && !((defined(LINUX) || defined(NACL)) && defined(__ELF__)) \ && !(defined(NETBSD) && defined(__ELF__)) && !defined(HURD) \ && !(defined(OPENBSD) && (defined(__ELF__) || defined(M68K))) - --> We only know how to find data segments of dynamic libraries for the - --> above. Additional SVR4 variants might not be too hard to add. +# error We only know how to find data segments of dynamic libraries for above. +# error Additional SVR4 variants might not be too hard to add. #endif #include @@ -213,7 +213,7 @@ GC_FirstDLOpenedLinkMap(void) /* Add dynamic library data sections to the root set. */ # if !defined(PCR) && !defined(GC_SOLARIS_THREADS) && defined(THREADS) - --> fix mutual exclusion with dlopen +# error Fix mutual exclusion with dlopen # endif # ifndef USE_PROC_FOR_LIBRARIES diff --git a/include/private/gc_hdrs.h b/include/private/gc_hdrs.h index 8991428..4540ac6 100644 --- a/include/private/gc_hdrs.h +++ b/include/private/gc_hdrs.h @@ -18,7 +18,7 @@ typedef struct hblkhdr hdr; #if CPP_WORDSZ != 32 && CPP_WORDSZ < 36 - --> Get a real machine. +# error Get a real machine #endif /* diff --git a/include/private/gc_priv.h b/include/private/gc_priv.h index 3a732c7..0852d48 100644 --- a/include/private/gc_priv.h +++ b/include/private/gc_priv.h @@ -762,7 +762,7 @@ GC_EXTERN GC_warn_proc GC_current_warn_proc; # elif HBLKSIZE == 16384 # define CPP_LOG_HBLKSIZE 14 # else - --> fix HBLKSIZE +# error fix HBLKSIZE # endif # undef HBLKSIZE #endif diff --git a/pthread_stop_world.c b/pthread_stop_world.c index dad1fdc..828a4ed 100644 --- a/pthread_stop_world.c +++ b/pthread_stop_world.c @@ -63,7 +63,7 @@ # elif defined(__SIGRTMAX) # define NSIG (__SIGRTMAX+1) # else - --> please fix it +# error define NSIG # endif # endif /* NSIG */ -- 2.7.4