diff mbox series

[kmod,1/2] m4: reinstate CC_CHECK_FLAG_APPEND summary

Message ID 20240810-b4-spdx-fixup-v1-1-b9c84d637fb3@gmail.com (mailing list archive)
State Handled Elsewhere
Headers show
Series Couple of SPDX fixes | expand

Commit Message

Emil Velikov via B4 Relay Aug. 10, 2024, 12:25 p.m. UTC
From: Emil Velikov <emil.l.velikov@gmail.com>

Earlier commit was reducing the license boilerplate to SPDX license
identifiers and erroneously dropped the function summary section.

Cc: Lucas De Marchi <lucas.de.marchi@gmail.com>
Fixes: b5a2cd0 ("Use SPDX header for license")
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
---
 m4/attributes.m4 | 5 +++++
 1 file changed, 5 insertions(+)
diff mbox series

Patch

diff --git a/m4/attributes.m4 b/m4/attributes.m4
index 69865ee..a22bb58 100644
--- a/m4/attributes.m4
+++ b/m4/attributes.m4
@@ -4,6 +4,11 @@ 
 # Copyright (c) 2006-2008 xine project
 # Copyright (c) 2012 Lucas De Marchi <lucas.de.marchi@gmail.com>
 
+# Check if FLAG in ENV-VAR is supported by compiler and append it
+# to WHERE-TO-APPEND variable. Note that we invert -Wno-* checks to
+# -W* as gcc cannot test for negated warnings.
+# CC_CHECK_FLAG_APPEND([WHERE-TO-APPEND], [ENV-VAR], [FLAG])
+
 AC_DEFUN([CC_CHECK_FLAG_APPEND], [
   AC_CACHE_CHECK([if $CC supports flag $3 in envvar $2],
                  AS_TR_SH([cc_cv_$2_$3]),