diff options
author | iphydf <iphydf@users.noreply.github.com> | 2018-06-24 22:56:07 +0000 |
---|---|---|
committer | iphydf <iphydf@users.noreply.github.com> | 2018-07-01 08:35:44 +0000 |
commit | 1a54be06cd359257478b584611f34058d21fe723 (patch) | |
tree | db3d6ca2dfa2a87ae2efdac6e412c2b780a64009 /.travis/flags-gcc.sh | |
parent | 706fad1ce88c2104009a3835ee343ff9d8ec8b79 (diff) |
Simplify Travis CI builds.
Have one script per build. This means more duplication between the
scripts, but it's much easier to understand and to run locally.
Diffstat (limited to '.travis/flags-gcc.sh')
-rw-r--r-- | .travis/flags-gcc.sh | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/.travis/flags-gcc.sh b/.travis/flags-gcc.sh new file mode 100644 index 00000000..0d262060 --- /dev/null +++ b/.travis/flags-gcc.sh | |||
@@ -0,0 +1,19 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | . .travis/flags.sh | ||
4 | |||
5 | # Add all warning flags we can. | ||
6 | add_flag -Wall | ||
7 | add_flag -Wextra | ||
8 | |||
9 | # Disable specific warning flags for both C and C++. | ||
10 | |||
11 | # struct Foo foo = {0}; is a common idiom. | ||
12 | add_flag -Wno-missing-field-initializers | ||
13 | # TODO(iphydf): Clean these up. They are likely not bugs, but still | ||
14 | # potential issues and probably confusing. | ||
15 | add_flag -Wno-sign-compare | ||
16 | # File transfer code has this. | ||
17 | add_flag -Wno-type-limits | ||
18 | # Callbacks often don't use all their parameters. | ||
19 | add_flag -Wno-unused-parameter | ||