~ismael

Recent activity

[PATCH basu v2] Workaround build failure by -Wpedantic with GCC 12 2 years ago

From Ismael Luceno to ~emersion/public-inbox

With GCC 12, even with -std=gnu99, -Wpedantic complains about %m in format
strings, __PRETTY_FUNCTION__, braces inside expressions, etc.; and it
makes some of these into errors.

Fixes: https://todo.sr.ht/~emersion/basu/18
Signed-off-by: Ismael Luceno <ismael@iodev.co.uk>
---
 meson.build | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/meson.build b/meson.build
index c942fd311b64..26125d625efb 100644
--- a/meson.build
+++ b/meson.build
[message trimmed]

[PATCH basu] Workaround build failure by -Wpedantic with GCC 12 2 years ago

From Ismael Luceno to ~emersion/public-inbox

With GCC 12, even with -std=gnu99, -Wpedantic complains about %m in format
strings, __PRETTY_FUNCTION__, braces inside expressions, etc.; and it
makes some of these into errors.

Fixes: https://todo.sr.ht/~emersion/basu/18
Signed-off-by: Ismael Luceno <ismael@iodev.co.uk>
---
 meson.build | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/meson.build b/meson.build
index c942fd311b64..876a48acbe9b 100644
--- a/meson.build
+++ b/meson.build
[message trimmed]

[PATCH] Use __func__ instead of __PRETTY_FUNCTION__ 2 years ago

From Ismael Luceno to ~emersion/public-inbox

Signed-off-by: Ismael Luceno <ismael@iodev.co.uk>
---
 src/basic/macro.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/basic/macro.h b/src/basic/macro.h
index 84817b4132ba..ae5f45db4700 100644
--- a/src/basic/macro.h
+++ b/src/basic/macro.h
@@ -205,12 +205,12 @@ static inline int __coverity_check__(int condition) {
#define assert_message_se(expr, message)                                \
        do {                                                            \
                if (_unlikely_(!(expr)))                                \
                        log_assert_failed(message, __FILE__, __LINE__, __PRETTY_FUNCTION__); \
[message trimmed]