[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libmicrohttpd] 138/156: Fixed compiler warning on x32
From: |
gnunet |
Subject: |
[libmicrohttpd] 138/156: Fixed compiler warning on x32 |
Date: |
Sun, 28 May 2023 17:53:11 +0200 |
This is an automated email from the git hooks/post-receive script.
karlson2k pushed a commit to tag v0.9.77
in repository libmicrohttpd.
commit 0dd8a700bfe56c61a756a0789dfa250bcd06e8d8
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Wed May 24 14:00:27 2023 +0300
Fixed compiler warning on x32
---
ChangeLog | 3 ++-
src/microhttpd/response.c | 2 ++
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index babd5e3f..9706f878 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -19,7 +19,8 @@ May 2023
on automatic selection by TLS library.
HTTPS tests: changed certificate hash algorithm from SHA-1 to SHA-256
as SHA-1 is already blocked by some libs/OSes.
- W32 VS projects: supported ARM and ARM64. -EG
+ W32 VS projects: supported ARM and ARM64.
+ Fixed compiler warning on x32. -EG
April 2023
Fixed processing of folded headers.
diff --git a/src/microhttpd/response.c b/src/microhttpd/response.c
index 41665754..99a7f188 100644
--- a/src/microhttpd/response.c
+++ b/src/microhttpd/response.c
@@ -1248,8 +1248,10 @@ MHD_create_response_from_data (size_t size,
if ((NULL == data) && (size > 0))
return NULL;
+#if SIZEOF_SIZE_T >= SIZEOF_UINT64_T
if (MHD_SIZE_UNKNOWN == size)
return NULL;
+#endif /* SIZEOF_SIZE_T >= SIZEOF_UINT64_T */
if (NULL == (response = MHD_calloc_ (1, sizeof (struct MHD_Response))))
return NULL;
response->fd = -1;
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [libmicrohttpd] 122/156: tests: fixed code style, (continued)
- [libmicrohttpd] 122/156: tests: fixed code style, gnunet, 2023/05/28
- [libmicrohttpd] 121/156: tests: unified use of function name macros, gnunet, 2023/05/28
- [libmicrohttpd] 127/156: Updated test keys to use SHA-256 hash instead of SHA-1, gnunet, 2023/05/28
- [libmicrohttpd] 135/156: W32 VS projects: target Win8 or later on ARM and ARM64 arches, gnunet, 2023/05/28
- [libmicrohttpd] 136/156: W32 VS projects: added ARM and ARM64 configurations, gnunet, 2023/05/28
- [libmicrohttpd] 102/156: configure: removed 'gettext' from the final report, gnunet, 2023/05/28
- [libmicrohttpd] 109/156: test_client_put_stop: avoid stress-testing the OS, gnunet, 2023/05/28
- [libmicrohttpd] 115/156: test_post: fixed caseless key name match, gnunet, 2023/05/28
- [libmicrohttpd] 120/156: Simplified usage of the function name magic macros, gnunet, 2023/05/28
- [libmicrohttpd] 131/156: ChangeLog: updated, gnunet, 2023/05/28
- [libmicrohttpd] 138/156: Fixed compiler warning on x32,
gnunet <=
- [libmicrohttpd] 78/156: Added tests with single and double folded header, gnunet, 2023/05/28
- [libmicrohttpd] 110/156: digest auth: fixed parallel access to the hash table, gnunet, 2023/05/28
- [libmicrohttpd] 114/156: examples/largepost.c: fixed code style, gnunet, 2023/05/28
- [libmicrohttpd] 125/156: .gitignore: force include all *.{c,h} files, gnunet, 2023/05/28
- [libmicrohttpd] 113/156: examples/largepost.c: fixed caseless method match, gnunet, 2023/05/28
- [libmicrohttpd] 129/156: Detect sysctl() symbols in configure, gnunet, 2023/05/28
- [libmicrohttpd] 98/156: .gitignore: added universal patter to ignore test binaries, gnunet, 2023/05/28
- [libmicrohttpd] 140/156: Added support for custom command for tarball compression, gnunet, 2023/05/28
- [libmicrohttpd] 143/156: Fixed compiler warning when built without poll() support, gnunet, 2023/05/28
- [libmicrohttpd] 141/156: contrib/make-dist.sh: added use of zopfli if available, gnunet, 2023/05/28