File: 2002_avoid-format-security-compiler-flag.patch

package info (click to toggle)
cpu-x 5.4.0-0.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 7,304 kB
  • sloc: ansic: 36,860; cpp: 8,094; asm: 7,291; sh: 693; xml: 190; makefile: 11
file content (22 lines) | stat: -rw-r--r-- 820 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
From: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
Date: Mon, 10 Mar 2025 14:43:04 +0000
Subject: Add -Wno-format-security to CMakeLists.txt in src/dmidecode/

Forwarded: not required, Debian-specific
---
 src/core/dmidecode/CMakeLists.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/core/dmidecode/CMakeLists.txt b/src/core/dmidecode/CMakeLists.txt
index 682ea7a..9397ac0 100644
--- a/src/core/dmidecode/CMakeLists.txt
+++ b/src/core/dmidecode/CMakeLists.txt
@@ -4,7 +4,7 @@ project(dmidecode
 )
 
 # Config (dmidecode)
-set(CMAKE_C_FLAGS       "${CMAKE_C_FLAGS}")
+set(CMAKE_C_FLAGS       "${CMAKE_C_FLAGS} -Wno-format-security")
 set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -Wno-shift-count-overflow")
 message(STATUS "Using built-in ${PROJECT_NAME}, version ${PROJECT_VERSION}")