mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-02-03 11:41:09 +00:00
Adding printf format warning flags to makefiles
Add printf format warning flags that are supported by GCC 3.0 or later to the makefiles Signed-off-by: Paul Elliott <paul.elliott@arm.com>
This commit is contained in:
parent
6f21e11265
commit
9e3256aead
|
@ -2,7 +2,7 @@
|
||||||
# Also see "include/mbedtls/config.h"
|
# Also see "include/mbedtls/config.h"
|
||||||
|
|
||||||
CFLAGS ?= -O2
|
CFLAGS ?= -O2
|
||||||
WARNING_CFLAGS ?= -Wall -Wextra
|
WARNING_CFLAGS ?= -Wall -Wextra -Wformat=2 -Wno-format-nonliteral
|
||||||
LDFLAGS ?=
|
LDFLAGS ?=
|
||||||
|
|
||||||
# Include ../include for public headers and . for private headers.
|
# Include ../include for public headers and . for private headers.
|
||||||
|
|
|
@ -3,8 +3,8 @@
|
||||||
# To compile with PKCS11: add "-lpkcs11-helper" to LDFLAGS
|
# To compile with PKCS11: add "-lpkcs11-helper" to LDFLAGS
|
||||||
|
|
||||||
CFLAGS ?= -O2
|
CFLAGS ?= -O2
|
||||||
WARNING_CFLAGS ?= -Wall -Wextra
|
WARNING_CFLAGS ?= -Wall -Wextra -Wformat=2 -Wno-format-nonliteral
|
||||||
WARNING_CXXFLAGS ?= -Wall -Wextra
|
WARNING_CXXFLAGS ?= -Wall -Wextra -Wformat=2 -Wno-format-nonliteral
|
||||||
LDFLAGS ?=
|
LDFLAGS ?=
|
||||||
|
|
||||||
MBEDTLS_TEST_PATH:=../tests/src
|
MBEDTLS_TEST_PATH:=../tests/src
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
# To compile with PKCS11: add "-lpkcs11-helper" to LDFLAGS
|
# To compile with PKCS11: add "-lpkcs11-helper" to LDFLAGS
|
||||||
|
|
||||||
CFLAGS ?= -O2
|
CFLAGS ?= -O2
|
||||||
WARNING_CFLAGS ?= -Wall -Wextra
|
WARNING_CFLAGS ?= -Wall -Wextra -Wformat=2 -Wno-format-nonliteral
|
||||||
LDFLAGS ?=
|
LDFLAGS ?=
|
||||||
|
|
||||||
# Include public header files from ../include, test-specific header files
|
# Include public header files from ../include, test-specific header files
|
||||||
|
|
Loading…
Reference in a new issue