Merge pull request #858 from bebehei/werror-on-ci
Add CFLAGS with -Werror for CI
This commit is contained in:
commit
f2017eb3d6
1
.github/workflows/main.yml
vendored
1
.github/workflows/main.yml
vendored
@ -25,6 +25,7 @@ jobs:
|
|||||||
|
|
||||||
env:
|
env:
|
||||||
CC: ${{ matrix.CC }}
|
CC: ${{ matrix.CC }}
|
||||||
|
EXTRA_CFLAGS: "-Werror"
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
|
@ -111,6 +111,7 @@ sudo make install
|
|||||||
- `WAYLAND=(0|1)`: Disable/Enable wayland support. (Default: 1 (enabled))
|
- `WAYLAND=(0|1)`: Disable/Enable wayland support. (Default: 1 (enabled))
|
||||||
- `SERVICEDIR_SYSTEMD=<PATH>`: The path to put the systemd user service file. Unused, if `SYSTEMD=0`. (Default: detected via `pkg-config`)
|
- `SERVICEDIR_SYSTEMD=<PATH>`: The path to put the systemd user service file. Unused, if `SYSTEMD=0`. (Default: detected via `pkg-config`)
|
||||||
- `SERVICEDIR_DBUS=<PATH>`: The path to put the dbus service file. (Default: detected via `pkg-config`)
|
- `SERVICEDIR_DBUS=<PATH>`: The path to put the dbus service file. (Default: detected via `pkg-config`)
|
||||||
|
- `EXTRA_CFLAGS=<FLAGS>`: Additional flags for the compiler.
|
||||||
|
|
||||||
**Make sure to run all make calls with the same parameter set. So when building with `make PREFIX=/usr`, you have to install it with `make PREFIX=/usr install`, too.**
|
**Make sure to run all make calls with the same parameter set. So when building with `make PREFIX=/usr`, you have to install it with `make PREFIX=/usr install`, too.**
|
||||||
|
|
||||||
|
@ -6,6 +6,7 @@ DATADIR ?= ${PREFIX}/share
|
|||||||
# around for backwards compatibility
|
# around for backwards compatibility
|
||||||
MANPREFIX ?= ${DATADIR}/man
|
MANPREFIX ?= ${DATADIR}/man
|
||||||
MANDIR ?= ${MANPREFIX}
|
MANDIR ?= ${MANPREFIX}
|
||||||
|
EXTRA_CFLAGS ?=
|
||||||
|
|
||||||
DOXYGEN ?= doxygen
|
DOXYGEN ?= doxygen
|
||||||
FIND ?= find
|
FIND ?= find
|
||||||
@ -36,7 +37,7 @@ endif
|
|||||||
|
|
||||||
# flags
|
# flags
|
||||||
DEFAULT_CPPFLAGS = -D_DEFAULT_SOURCE -DVERSION=\"${VERSION}\"
|
DEFAULT_CPPFLAGS = -D_DEFAULT_SOURCE -DVERSION=\"${VERSION}\"
|
||||||
DEFAULT_CFLAGS = -g --std=gnu99 -pedantic -Wall -Wno-overlength-strings -Os ${STATIC} ${ENABLE_WAYLAND}
|
DEFAULT_CFLAGS = -g --std=gnu99 -pedantic -Wall -Wno-overlength-strings -Os ${STATIC} ${ENABLE_WAYLAND} ${EXTRA_CFLAGS}
|
||||||
DEFAULT_LDFLAGS = -lm -lrt
|
DEFAULT_LDFLAGS = -lm -lrt
|
||||||
|
|
||||||
CPPFLAGS_DEBUG := -DDEBUG_BUILD
|
CPPFLAGS_DEBUG := -DDEBUG_BUILD
|
||||||
|
Loading…
x
Reference in New Issue
Block a user