New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #28324 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

libsamplerate: samplerate.h has comma at end of enumerator list

Reported by: ryandesign@… Owned by: boeyms@…
Priority: Normal Milestone:
Component: ports Version: 1.9.2
Keywords: haspatch Cc:
Port: libsamplerate

Description

When trying to compile darkice (#24867) with its +samplerate variant, I get this error:

In file included from VorbisLibEncoder.h:56,
                 from DarkIce.cpp:92:
/opt/local/include/samplerate.h:177: error: comma at end of enumerator list

It seems having a comma at the end of an enumerated list is valid in C99 but not C89, and if another project is compiling with -pedantic then it will encounter this error.

When we've had other ports in the past that have had this error (e.g. cairo in #26806) we've fixed them; perhaps we can fix this in libsamplerate too.

Attachments

libsamplerate.diff (1.1 KB) - added by ryandesign@… 2 years ago.
proposed patch

Change History

Changed 2 years ago by ryandesign@…

proposed patch

comment:1 Changed 2 years ago by ryandesign@…

  • Keywords haspatch added

comment:2 Changed 2 years ago by ryandesign@…

  • Status changed from new to closed
  • Resolution set to fixed

r75920 (maintainer timeout)

Note: See TracTickets for help on using tickets.