a142c87042
gcc has a new warning which caught a bug of int/enum mismatches. And we would crash on some architectures when built with -D_FORTIFY_SOURCE=3 because of our malloc_usable_size() use. This should resolve the build failure in F38 mass build.
35 lines
1.3 KiB
Diff
35 lines
1.3 KiB
Diff
From b1b7667a44c4e8635b6d8dc070fb2446187fcdc5 Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?Cristian=20Rodr=C3=ADguez?= <crodriguez@owncloud.com>
|
|
Date: Fri, 11 Nov 2022 15:28:51 +0000
|
|
Subject: [PATCH 2/5] journal-remote: code is of type enum
|
|
MHD_RequestTerminationCode
|
|
|
|
Fixes gcc 13 -Wenum-int-mismatch which are enabled by default.
|
|
|
|
(cherry picked from commit aa70dd624bff6280ab6f2871f62d313bdb1e1bcc)
|
|
---
|
|
src/journal-remote/microhttpd-util.h | 4 ++--
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/src/journal-remote/microhttpd-util.h b/src/journal-remote/microhttpd-util.h
|
|
index 7e7d1b56b1..df18335469 100644
|
|
--- a/src/journal-remote/microhttpd-util.h
|
|
+++ b/src/journal-remote/microhttpd-util.h
|
|
@@ -64,11 +64,11 @@ void microhttpd_logger(void *arg, const char *fmt, va_list ap) _printf_(2, 0);
|
|
|
|
int mhd_respondf(struct MHD_Connection *connection,
|
|
int error,
|
|
- unsigned code,
|
|
+ enum MHD_RequestTerminationCode code,
|
|
const char *format, ...) _printf_(4,5);
|
|
|
|
int mhd_respond(struct MHD_Connection *connection,
|
|
- unsigned code,
|
|
+ enum MHD_RequestTerminationCode code,
|
|
const char *message);
|
|
|
|
int mhd_respond_oom(struct MHD_Connection *connection);
|
|
--
|
|
2.39.1
|
|
|