[arch-commits] Commit in linux-tools/trunk (PKGBUILD)

Evangelos Foutras foutrelis at gemini.archlinux.org
Mon May 30 14:56:25 UTC 2022


    Date: Monday, May 30, 2022 @ 14:56:25
  Author: foutrelis
Revision: 1216420

Add three -Wno-error= flags when building perf

Perl 5.36 triggers these warnings which are then treated as errors:

/usr/lib/perl5/5.36/core_perl/CORE/inline.h: In function 'Perl_is_utf8_valid_partial_char_flags':
/usr/lib/perl5/5.36/core_perl/CORE/handy.h:125:23: error: cast from function call of type 'STRLEN' {aka 'long unsigned int'} to non-matching type '_Bool' [-Werror=bad-function-cast]
  125 | #define cBOOL(cbool) ((bool) (cbool))
      |                       ^
/usr/lib/perl5/5.36/core_perl/CORE/inline.h:2363:12: note: in expansion of macro 'cBOOL'
 2363 |     return cBOOL(is_utf8_char_helper_(s0, e, flags));
      |            ^~~~~
In file included from /usr/lib/perl5/5.36/core_perl/CORE/perl.h:7242:
/usr/lib/perl5/5.36/core_perl/CORE/inline.h: In function 'Perl_cop_file_avn':
/usr/lib/perl5/5.36/core_perl/CORE/inline.h:3489:5: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement]
 3489 |     const char *file = CopFILE(cop);
      |     ^~~~~
In file included from /usr/lib/perl5/5.36/core_perl/CORE/perl.h:7243:
/usr/lib/perl5/5.36/core_perl/CORE/sv_inline.h: In function 'Perl_newSV_type':
/usr/lib/perl5/5.36/core_perl/CORE/sv_inline.h:376:5: error: enumeration value 'SVt_LAST' not handled in switch [-Werror=switch-enum]
  376 |     switch (type) {
      |     ^~~~~~

Modified:
  linux-tools/trunk/PKGBUILD

----------+
 PKGBUILD |    1 +
 1 file changed, 1 insertion(+)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-05-30 14:44:57 UTC (rev 1216419)
+++ PKGBUILD	2022-05-30 14:56:25 UTC (rev 1216420)
@@ -84,6 +84,7 @@
     prefix=/usr \
     lib=lib/perf \
     perfexecdir=lib/perf \
+    EXTRA_CFLAGS=' -Wno-error=bad-function-cast -Wno-error=declaration-after-statement -Wno-error=switch-enum'
     NO_SDT=1 \
     PYTHON=python \
     PYTHON_CONFIG=python-config \



More information about the arch-commits mailing list