Skip to content

[BUG] Use of deprecated MHD_HTTP_UNORDERED_COLLECTION  #176

@bcsgh

Description

@bcsgh

Prerequisites

Description

Used here:

const int http_utils::http_unordered_collection = MHD_HTTP_UNORDERED_COLLECTION;

however libmicrohttpd defines it like:

/** @deprecated */
#define MHD_HTTP_UNORDERED_COLLECTION
_MHD_DEPR_IN_MACRO (
"Value MHD_HTTP_UNORDERED_COLLECTION is deprecated as it was removed from RFC")
425
https://git.gnunet.org/libmicrohttpd.git/tree/src/include/microhttpd.h?h=v0.9.69&id=3a661f8675e4312f5c02339a0dcd44bf0a5fcef5#n498

Note 1: This seems to have been chnaged c2019/07
https://lists.gnu.org/archive/html/gnunet-svn/2019-06/msg00286.html

Note 2: I was able to work around this by building that file with -DMHD_NO_DEPRECATION

Steps to Reproduce

  1. compile with -Werror

Expected behavior: [What you expect to happen]

Build without warnings or errors

Actual behavior: [What actually happens]

Warning/Error -> "Value MHD_HTTP_UNORDERED_COLLECTION is deprecated as it was removed from RFC"

Reproduces how often: 100%

Versions

See link above for srv versions, OS shouldn't matter.

If you have problems during build:

  • Compiler version: GCC

Metadata

Metadata

Assignees

Labels

bugConfirmed bugs or reports that are very likely to be bugs.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions