nodejs / http-parser

http request/response parser for c
MIT License
6.32k stars 1.53k forks source link

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

Open paulbartell opened 3 years ago

paulbartell commented 3 years ago

Add dummy "LAST" items to each enum to mask the gcc "comma at end of enumerator list" warning and allow building with -Werror.

viccpp commented 3 years ago

Trailing comma is permitted since C99 (and C++11)

paulbartell commented 3 years ago

@viccpp . Very true. The FreeRTOS coreHTTP library that depends on http-parser targets C90 compilers.