Skip to content

Commit d02b312

Browse files
committed
Removed warnings about format strings when running littlefs tests
The difference gcc targets differ with format strings in some odd (but not against the rules) ways. Most notable, the uint32_t in i386/x86_64 gcc uses %d, whereas on cortex-m gcc uses %ld. This makes dealing with warnings on code that goes between the two rather annoying.
1 parent 91a4f44 commit d02b312

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

.travis.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,23 +11,23 @@ script:
1111
-n 'tests*'
1212

1313
# Run littlefs functional tests
14-
- CFLAGS="-Wno-error=format" make -Clittlefs test QUIET=1
14+
- CFLAGS="-Wno-format" make -Clittlefs test QUIET=1
1515

1616
# Run littlefs functional tests with different configurations
1717
# Note: r/w size of 64 is default in mbed
18-
- CFLAGS="-Wno-error=format -DLFS_READ_SIZE=64 -DLFS_PROG_SIZE=64"
18+
- CFLAGS="-Wno-format -DLFS_READ_SIZE=64 -DLFS_PROG_SIZE=64"
1919
make -Clittlefs test QUIET=1
20-
- CFLAGS="-Wno-error=format -DLFS_READ_SIZE=1 -DLFS_PROG_SIZE=1"
20+
- CFLAGS="-Wno-format -DLFS_READ_SIZE=1 -DLFS_PROG_SIZE=1"
2121
make -Clittlefs test QUIET=1
22-
- CFLAGS="-Wno-error=format -DLFS_READ_SIZE=512 -DLFS_PROG_SIZE=512"
22+
- CFLAGS="-Wno-format -DLFS_READ_SIZE=512 -DLFS_PROG_SIZE=512"
2323
make -Clittlefs test QUIET=1
24-
- CFLAGS="-Wno-error=format -DLFS_BLOCK_COUNT=1023"
24+
- CFLAGS="-Wno-format -DLFS_BLOCK_COUNT=1023"
2525
make -Clittlefs test QUIET=1
26-
- CFLAGS="-Wno-error=format -DLFS_LOOKAHEAD=2048"
26+
- CFLAGS="-Wno-format -DLFS_LOOKAHEAD=2048"
2727
make -Clittlefs test QUIET=1
2828

2929
# Self-host with littlefs-fuse for fuzz test
30-
- make -C littlefs-fuse
30+
- CFLAGS="-Wno-format" make -C littlefs-fuse
3131

3232
- littlefs-fuse/lfs --format /dev/loop0
3333
- littlefs-fuse/lfs /dev/loop0 mount
@@ -37,7 +37,7 @@ script:
3737
- cp -r $(git ls-tree --name-only HEAD littlefs/) mount/littlefs
3838
- cd mount/littlefs
3939
- ls
40-
- CFLAGS="-Wno-error=format" make -B test_dirs QUIET=1
40+
- CFLAGS="-Wno-format" make -B test_dirs QUIET=1
4141

4242
install:
4343
# Get arm-none-eabi-gcc

0 commit comments

Comments
 (0)