Skip to content

Commit 6c8c19e

Browse files
bors[bot]paul-elliott-armJethro Beekman
authored
Merge #160
160: Reduce level of -Wformat-truncation r=zugzwang a=jethrogb Partially backport Mbed-TLS/mbedtls#4237 to deal with Mbed-TLS/mbedtls#4233 Also fixes #159 Co-authored-by: Paul Elliott <[email protected]> Co-authored-by: Jethro Beekman <[email protected]>
2 parents c700c03 + 4567131 commit 6c8c19e

File tree

5 files changed

+9
-12
lines changed

5 files changed

+9
-12
lines changed

Cargo.lock

+5-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ct.sh

+1-4
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,6 @@ export CC_aarch64_unknown_linux_musl=/tmp/aarch64-linux-musl-cross/bin/aarch64-l
2121
export CARGO_TARGET_AARCH64_UNKNOWN_LINUX_MUSL_LINKER=/tmp/aarch64-linux-musl-cross/bin/aarch64-linux-musl-gcc
2222
export CARGO_TARGET_AARCH64_UNKNOWN_LINUX_MUSL_RUNNER=qemu-aarch64
2323

24-
# Temporary workaround for MbedTLS 2.26.0 https://github.com/ARMmbed/mbedtls/pull/4237
25-
export CFLAGS_aarch64_unknown_linux_musl="-Wformat-truncation"
26-
2724
if [ "$TRAVIS_RUST_VERSION" == "stable" ] || [ "$TRAVIS_RUST_VERSION" == "beta" ] || [ "$TRAVIS_RUST_VERSION" == "nightly" ]; then
2825
# Install the rust toolchain
2926
rustup default $TRAVIS_RUST_VERSION
@@ -32,7 +29,7 @@ if [ "$TRAVIS_RUST_VERSION" == "stable" ] || [ "$TRAVIS_RUST_VERSION" == "beta"
3229
# The SGX target cannot be run under test like a ELF binary
3330
if [ "$TARGET" != "x86_64-fortanix-unknown-sgx" ]; then
3431
# make sure that explicitly providing the default target works
35-
cargo test --target $TARGET
32+
cargo test --target $TARGET --release
3633
cargo test --features pkcs12 --target $TARGET
3734
cargo test --features pkcs12_rc2 --target $TARGET
3835
cargo test --features dsa --target $TARGET

mbedtls-sys/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "mbedtls-sys-auto"
3-
version = "2.26.0"
3+
version = "2.26.1"
44
authors = ["Jethro Beekman <[email protected]>"]
55
build = "build/build.rs"
66
license = "Apache-2.0/GPL-2.0+"

mbedtls-sys/vendor/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ if(CMAKE_COMPILER_IS_GNU)
198198
endif()
199199
endif()
200200
if (GCC_VERSION VERSION_GREATER 7.0 OR GCC_VERSION VERSION_EQUAL 7.0)
201-
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wformat-overflow=2 -Wformat-truncation=2")
201+
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wformat-overflow=2 -Wformat-truncation")
202202
endif()
203203
set(CMAKE_C_FLAGS_RELEASE "-O2")
204204
set(CMAKE_C_FLAGS_DEBUG "-O0 -g3")

mbedtls/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ rc2 = { version = "0.3", optional = true }
3232
cfg-if = "1.0.0"
3333

3434
[target.x86_64-fortanix-unknown-sgx.dependencies]
35-
rs-libc = "0.1.0"
35+
rs-libc = "0.2.0"
3636
chrono = "0.4"
3737

3838
[dependencies.mbedtls-sys-auto]

0 commit comments

Comments
 (0)