]> code.ossystems Code Review - meta-freescale.git/commitdiff
imx-test: Disable stringformat security flags
authorOtavio Salvador <otavio@ossystems.com.br>
Fri, 2 Oct 2020 13:15:10 +0000 (10:15 -0300)
committerOtavio Salvador <otavio@ossystems.com.br>
Sun, 4 Oct 2020 22:37:33 +0000 (19:37 -0300)
This fixes following build error:

,----
| pxp_lib_test/pxp_test.c: In function 'main':
| pxp_lib_test/pxp_test.c:541:2: error: format not a string literal and no format arguments [-Werror=format-security]
|   541 |  printf(usage);
|       |  ^~~~~~
`----

Fixes: #506.
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Change-Id: Ie6df1a64ba7126967861cb8fc889d4ca6f22b67a
(cherry picked from commit 8a6193807d07edc30fd06e19f475dc7a7c1689b2)

recipes-bsp/imx-test/imx-test_git.bb

index 81bbd3a34792077c6fc93ae5c9e359b0c0bf2d93..61f5e9d475b2afb5b6985a563994026314712e77 100644 (file)
@@ -49,6 +49,9 @@ PACKAGECONFIG_append_imxvpu = " vpu"
 PACKAGECONFIG[x11] = ",,libx11 libxdamage libxrender libxrandr"
 PACKAGECONFIG[vpu] = "HAS_VPU=true,HAS_VPU=false,virtual/imxvpu"
 
+# FIXME: Fail to build due to misuse of printf
+SECURITY_STRINGFORMAT = ""
+
 do_compile() {
     CFLAGS="${TOOLCHAIN_OPTIONS}"
     oe_runmake V=1 VERBOSE='' \