From 05b16745a1d26c4e098c39a49c56e9c312771bd2 Mon Sep 17 00:00:00 2001 From: Ashish SHUKLA Date: Mon, 23 Sep 2024 12:43:37 +0200 Subject: [PATCH] Fix release build with GCC 11.x MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit meson in release build mode (with GCC) triggers following compiler error: In file included from ../source/clipboard.c:14: ../source/clipboard.c: In function ‘select_mime_type_for_offer’: ../source/log.h:58:5: error: ‘%s’ directive argument is null [-Werror=format-overflow=] 58 | log_msg(LOG_CLASS_DEBUG, LOG_MODULE, __FILE__, __LINE__, fmt, ## __VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../source/clipboard.c:81:5: note: in expansion of macro ‘LOG_DBG’ 81 | LOG_DBG("mime-type: %s -> %s (offered type was %s)", | ^~~~~~~ ../source/clipboard.c:81:31: note: format string is defined here 81 | LOG_DBG("mime-type: %s -> %s (offered type was %s)", | ^~ Fixes #420 --- clipboard.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/clipboard.c b/clipboard.c index a4fa2d2..c692503 100644 --- a/clipboard.c +++ b/clipboard.c @@ -79,7 +79,9 @@ select_mime_type_for_offer(const char *_mime_type, } LOG_DBG("mime-type: %s -> %s (offered type was %s)", - mime_type_map[*type], mime_type_map[mime_type], _mime_type); + mime_type_map[*type], + (mime_type_map[mime_type] == NULL ? "(null)" : mime_type_map[mime_type]), + _mime_type); /* Mime-type transition; if the new mime-type is "better" than * previously offered types, use the new type */ ion>
path: root/doc/images
AgeCommit message (Expand)Author
2024-04-14doc: Use "dejavu sans" instead of "Helvetica" or "sans" in dot images....Font-dejavu is (now) an input of fontconfig. Specifying "dejavu sans" makes generated images reproducible even when other fonts are installed (notably font-google-noto). * doc/images/bootstrap-graph.dot, doc/images/bootstrap-packages.dot, doc/images/coreutils-bag-graph.dot, doc/images/coreutils-graph.dot, doc/images/gcc-core-mesboot0-graph.dot, doc/images/service-graph.dot, doc/images/shepherd-graph.dot: Use fontname = "dejavu sans". * doc/guix.texi (Full-Source Bootstrap): Update gcc-core-mesboot0.dot recipe accordingly. Change-Id: If21d7d39d45c66de5bceafb7b825a057d540ee50 Janneke Nieuwenhuizen
2022-05-12doc: Add the "Full-source Bootstrap"....* doc/guix.texi (Reduced Binary Seed Bootstrap): Update and rename to... (Full-Source Bootstrap): ...this. * doc/images/gcc-core-mesboot0-graph.dot: Regenerate. Jan (janneke) Nieuwenhuizen
2020-05-22doc: Update 'Bootstrapping' for further binary seed reduction....* doc/images/gcc-core-mesboot0-graph.dot: New image, replacing * doc/images/gcc-mesboot0-bag-graph.dot: ... remove file. * doc/local.mk (DOT_FILES): Update for new image file. * doc/guix.texi (Reduced Binary Seed Bootstrap): Use it in updated description of further reduction of the trusted computing base. Jan Nieuwenhuizen