* Use pragmas not hacks to disable build warnings for homebrew libs
Current libjson-c no longer triggering errors.
talloc.h errors silenced by
b65415f985bdb4a823afd5d7e1acac4de4314f0b
* CI package tests: Use Azure-hosted mirrors for better reliability
- name: Package manager performance improvements
run: |
+ sed -i 's/deb.debian.org/debian-archive.trafficmanager.net/' /etc/apt/sources.list
+ sed -i 's/archive.ubuntu.com/azure.archive.ubuntu.com/' /etc/apt/sources.list
echo force-unsafe-io > /etc/dpkg/dpkg.cfg.d/02speedup
echo 'man-db man-db/auto-update boolean false' | debconf-set-selections
+ apt-get update
#
# Required so that the checkout action uses git protocol rather than the GitHub REST API.
#
- name: Install recent git
run: |
- apt-get update
apt-get install -y --no-install-recommends git-core ca-certificates
- uses: actions/checkout@v2
steps:
- # For pkill
- - name: Install procps
- run: |
- apt-get update
- apt-get install -y --no-install-recommends procps
-
- name: Load DEBs
uses: actions/download-artifact@v2
with:
- name: Package manager performance improvements
run: |
+ sed -i 's/deb.debian.org/debian-archive.trafficmanager.net/' /etc/apt/sources.list
+ sed -i 's/archive.ubuntu.com/azure.archive.ubuntu.com/' /etc/apt/sources.list
echo force-unsafe-io > /etc/dpkg/dpkg.cfg.d/02speedup
echo 'man-db man-db/auto-update boolean false' | debconf-set-selections
+ apt-get update
+
+ # For pkill
+ - name: Install procps
+ run: |
+ apt-get install -y --no-install-recommends procps
- name: Install DEBs
run: |
pcre-config --libs-posix --version 2>/dev/null || :
pcre2-config --libs-posix --version 2>/dev/null || :
- - name: Hacks to silence clang-12 warnings in talloc and json-c (MacOS)
- if: ${{ runner.os == 'macOS' }}
- run: |
- sed -i '' '1i\
- #pragma clang diagnostic ignored "-Wdocumentation"
- ' /usr/local/include/talloc.h
- sed -i '' '1i\
- #pragma clang diagnostic ignored "-Wdocumentation-deprecated-sync"
- ' /usr/local/include/json-c/json_tokener.h
- sed -i '' '1i\
- #pragma clang diagnostic ignored "-Wdocumentation-deprecated-sync"
- ' /usr/local/include/json-c/arraylist.h
- sed -i '' '1i\
- #pragma clang diagnostic ignored "-Wdocumentation-deprecated-sync"
- ' /usr/local/include/json-c/json_util.h
- sed -i '' '1i\
- #pragma clang diagnostic ignored "-Wstrict-prototypes"
- ' /usr/local/include/cassandra.h
-
- name: Configure
run: |
if $CC -v 2>&1 | grep clang > /dev/null; then
#include <freeradius-devel/server/base.h>
#include <freeradius-devel/util/debug.h>
+#ifdef HAVE_WDOCUMENTATION
+DIAG_OFF(documentation)
+#endif
+DIAG_OFF(strict-prototypes) /* Seen with homebrew cassandra-cpp-driver 2.15.3 */
#include <cassandra.h>
+DIAG_ON(strict-prototypes)
+#ifdef HAVE_WDOCUMENTATION
+DIAG_ON(documentation)
+#endif
#include "rlm_sql.h"