Skip to content

Commit aa43191

Browse files
authored
Merge pull request #58 from mattthias/travis_gcc-8_dpkg-buildflags
Run travis build with gcc-8 and dpkg-buildflags
2 parents 7a94946 + fdaac2e commit aa43191

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

.travis.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@ matrix:
22
include:
33
- os: osx
44
compiler: clang
5+
- os: linux
6+
compiler: gcc-8
7+
env:
8+
- LDFLAGS="-Wl,-z,relro"
9+
- CFLAGS="-g -O2 -fstack-protector-strong -Wformat -Werror=format-security"
10+
- CPPFLAGS="-Wdate-time -D_FORTIFY_SOURCE=2"
511
- os: linux
612
compiler: gcc
713
env:
@@ -53,9 +59,12 @@ env:
5359

5460
addons:
5561
apt:
62+
sources:
63+
- ubuntu-toolchain-r-test
5664
packages:
5765
- musl-tools
5866
- indent
67+
- gcc-8
5968
homebrew:
6069
packages:
6170
- gnu-indent

src/plugins/df.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ int df(int argc, char **argv)
7373
if (strcmp(argv[1], "config") == 0) {
7474
printf("graph_title Disk usage in percent\n"
7575
"graph_args --upper-limit 100 -l 0\n"
76-
"graph_vlabel %\n"
76+
"graph_vlabel %%\n"
7777
"graph_scale no\n" "graph_category disk\n");
7878

7979
while ((fs = getmntent(fp)) != NULL) {

0 commit comments

Comments
 (0)