summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorRuslan Mustakov <endragor@users.noreply.github.com>2017-04-13 03:09:00 +0700
committerAndreas Rumpf <rumpf_a@web.de>2017-04-12 22:09:00 +0200
commit926563f0e6c4fe13b8f88f58ac33ccd7826692f4 (patch)
tree80ff0602f51c3f9878b05889cc4e5cc96e952a9d /lib
parente8389dcb93f9f9565e6bfcfdfc2aad32dcc2eb0e (diff)
downloadNim-926563f0e6c4fe13b8f88f58ac33ccd7826692f4.tar.gz
Ignore constant-conversion warning (#5696)
Diffstat (limited to 'lib')
-rw-r--r--lib/nimbase.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/nimbase.h b/lib/nimbase.h
index 714623d4e..70391024f 100644
--- a/lib/nimbase.h
+++ b/lib/nimbase.h
@@ -26,14 +26,14 @@ __clang__
 /*------------ declaring a custom attribute to support using LLVM's Address Sanitizer ------------ */
 
 /*
-   This definition exists to provide support for using the LLVM ASAN (Address SANitizer) tooling with Nim. This 
+   This definition exists to provide support for using the LLVM ASAN (Address SANitizer) tooling with Nim. This
    should only be used to mark implementations of the GC system that raise false flags with the ASAN tooling, or
-   for functions that are hot and need to be disabled for performance reasons. Based on the official ASAN 
-   documentation, both the clang and gcc compilers are supported. In addition to that, a check is performed to 
+   for functions that are hot and need to be disabled for performance reasons. Based on the official ASAN
+   documentation, both the clang and gcc compilers are supported. In addition to that, a check is performed to
    verify that the necessary attribute is supported by the compiler.
 
    To flag a proc as ignored, append the following code pragma to the proc declaration:
-      {.codegenDecl: "CLANG_NO_SANITIZE_ADDRESS $# $#$#".} 
+      {.codegenDecl: "CLANG_NO_SANITIZE_ADDRESS $# $#$#".}
 
    For further information, please refer to the official documentation:
      https://github.com/google/sanitizers/wiki/AddressSanitizer
@@ -64,6 +64,7 @@ __clang__
 #  pragma GCC diagnostic ignored "-Wmacro-redefined"
 #  pragma GCC diagnostic ignored "-Wincompatible-pointer-types-discards-qualifiers"
 #  pragma GCC diagnostic ignored "-Wpointer-bool-conversion"
+#  pragma GCC diagnostic ignored "-Wconstant-conversion"
 #endif
 
 #if defined(_MSC_VER)