Files
poky/meta/recipes-extended/man-db/files/0001-man-Move-local-variable-declaration-to-function-scop.patch
Wang Mingyu f0042e6e72 man-db: upgrade 2.12.0 -> 2.12.1
0001-man-Move-local-variable-declaration-to-function-scop.patch
refreshed for 2.23.1

Changelog:
=============
* Fix excessive cleanup of '/var/cache/man' by 'systemd-tmpfiles'.
* 'man' matches the display width more accurately to the configured width.
* Upgrade to Gnulib 'stable-202401'.
* Mention 'groff''s 'pdf' device in 'man(1)'.
* Speed up 'seccomp' filter slightly.
* Document how to format pages using italic rather than underlined text.
* Remove the obsolete 'chconfig' tool for converting man-db configuration
  files to the FHS.  This transition took place almost 25 years ago (at
  least in Debian), so it's not worth keeping it around now.

(From OE-Core rev: 688c05422fc27bb389ba29c95beafb5029ff78b8)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-04-16 08:07:02 +01:00

39 lines
1.2 KiB
Diff

From e4125223631f0d555fc327da6d8705bcc8ee5ba5 Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Wed, 9 Feb 2022 17:30:16 -0800
Subject: [PATCH] man: Move local variable declaration to function scope
There is a clang bug [1] unearthed here, so help clang by re-arranging
code without changing the logic, until its fixed in clang
[1] https://github.com/llvm/llvm-project/issues/53692
Upstream-Status: Inappropriate [Inappropriate: Clang bug]
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
src/man.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/man.c b/src/man.c
index 195d35d..6870989 100644
--- a/src/man.c
+++ b/src/man.c
@@ -379,7 +379,7 @@ static void init_html_pager (void)
static error_t parse_opt (int key, char *arg, struct argp_state *state)
{
static bool apropos, whatis; /* retain values between calls */
-
+ char *s;
/* Please keep these keys in the same order as in options above. */
switch (key) {
case 'C':
@@ -411,7 +411,7 @@ static error_t parse_opt (int key, char *arg, struct argp_state *state)
case OPT_WARNINGS:
#ifdef NROFF_WARNINGS
{
- char *s = xstrdup
+ s = xstrdup
(arg ? arg : default_roff_warnings);
const char *warning;