Skip to content
This repository has been archived by the owner on Nov 6, 2022. It is now read-only.

Fix gcc comma at end of enumerator list warning. #531

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions http_parser.h
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ enum http_status
#define XX(num, name, string) HTTP_STATUS_##name = num,
HTTP_STATUS_MAP(XX)
#undef XX
HTTP_STATUS_LAST = HTTP_STATUS_NETWORK_AUTHENTICATION_REQUIRED
};


Expand Down Expand Up @@ -211,6 +212,7 @@ enum http_method
#define XX(num, name, string) HTTP_##name = num,
HTTP_METHOD_MAP(XX)
#undef XX
HTTP_LAST = HTTP_SOURCE
};


Expand Down Expand Up @@ -286,6 +288,7 @@ enum flags
#define HTTP_ERRNO_GEN(n, s) HPE_##n,
enum http_errno {
HTTP_ERRNO_MAP(HTTP_ERRNO_GEN)
HPE_LAST = HPE_INVALID_TRANSFER_ENCODING
};
#undef HTTP_ERRNO_GEN

Expand Down