1
0
Fork 0

Use PRIuPTR and define it for Windows GCC 64-bit

This commit is contained in:
krcroft 2019-11-29 17:28:51 -08:00 committed by Patryk Obara
parent 7d21bb1408
commit b55b43f543
8 changed files with 295 additions and 270 deletions

View file

@ -12,19 +12,19 @@ jobs:
- name: GCC-5 (Ubuntu 16.04)
os: ubuntu-16.04
flags: -c gcc
max_warnings: 304
max_warnings: 289
- name: GCC-7 (Ubuntu 18.04)
os: ubuntu-18.04
flags: -c gcc
max_warnings: 307
max_warnings: 292
- name: GCC-9 (Ubuntu 18.04)
os: ubuntu-18.04
flags: -c gcc -v 9
max_warnings: 330
max_warnings: 315
- name: Clang-8 (Ubuntu 18.04)
os: ubuntu-18.04
flags: -c clang -v 8
max_warnings: 170
max_warnings: 157
steps:
- uses: actions/checkout@v1
- run: sudo apt-get update

View file

@ -11,10 +11,10 @@ jobs:
conf:
- name: Clang
flags: -c clang
max_warnings: 222
max_warnings: 209
- name: GCC-9
flags: -c gcc -v 9
max_warnings: 317
max_warnings: 302
steps:
- uses: actions/checkout@v1
- name: Install C++ compiler and libraries

View file

@ -1,10 +1,10 @@
name: Windows builds
on: push
env:
MAX_WARNINGS_GCC_32bit_Debug: 234
MAX_WARNINGS_GCC_64bit_Debug: 350
MAX_WARNINGS_Clang_32bit_Debug: 100
MAX_WARNINGS_Clang_64bit_Debug: 155
MAX_WARNINGS_GCC_32bit_Debug: 230
MAX_WARNINGS_GCC_64bit_Debug: 305
MAX_WARNINGS_Clang_32bit_Debug: 99
MAX_WARNINGS_Clang_64bit_Debug: 143
jobs:
@ -73,6 +73,5 @@ jobs:
export MSYSTEM_CARCH="$ARCH_${{ matrix.bits }}"
export MSYSTEM_CHOST="$ARCH_${{ matrix.bits }}-pc-msys"
./scripts/build.sh --compiler ${{ matrix.compiler }} --build-type Debug --bin-path /mingw${{ matrix.bits }}/bin
grep '^#define' config.h
- name: Debug Warnings
run: '.\scripts\count-warnings.py -m $env:MAX_WARNINGS_${{ matrix.compiler }}_${{ matrix.bits }}bit_Debug build.log'