From 5ad9e28a097bc48c53c65fa109f21da3ddfa946c Mon Sep 17 00:00:00 2001
From: "Peter W. Draper" <p.w.draper@durham.ac.uk>
Date: Thu, 13 Dec 2018 16:14:47 +0000
Subject: [PATCH] Add warnings about libNUMA and its broken headers

---
 INSTALL.swift                                    | 6 ++++++
 doc/RTD/source/GettingStarted/compiling_code.rst | 2 +-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/INSTALL.swift b/INSTALL.swift
index db6c6677b2..bf8dbc92f5 100644
--- a/INSTALL.swift
+++ b/INSTALL.swift
@@ -154,6 +154,12 @@ before you can build it.
         distributing the threads among the different cores on each
         computing node.
 
+        Note that if you have libNUMA outside of the system include
+        directories it may fail to compile as the headers do not pass
+        the -Wstrict-prototype check of GCC. In that case you will need
+        to use --enable-compiler-warnings=yes configure option to stop
+        this being an error.
+
  - tcmalloc / jemalloc / TBBmalloc:
 	a build of the tcmalloc library (part of gperftools), jemalloc
 	or TBBmalloc can be used be used to obtain faster and more
diff --git a/doc/RTD/source/GettingStarted/compiling_code.rst b/doc/RTD/source/GettingStarted/compiling_code.rst
index c40f06965e..a0ce1c08ea 100644
--- a/doc/RTD/source/GettingStarted/compiling_code.rst
+++ b/doc/RTD/source/GettingStarted/compiling_code.rst
@@ -38,7 +38,7 @@ METIS is used for domain decomposition and load balancing.
 
 libNUMA
 ~~~~~~~
-libNUMA is used to pin threads.
+libNUMA is used to pin threads (but see INSTALL.swift).
 
 GSL
 ~~~
-- 
GitLab