chiark / gitweb /
Avoid macro-generating a trailing comma in an enum.
authorSimon Tatham <anakin@pobox.com>
Sun, 24 Sep 2017 15:56:18 +0000 (16:56 +0100)
committerSimon Tatham <anakin@pobox.com>
Sun, 24 Sep 2017 15:56:18 +0000 (16:56 +0100)
commitdf3b9cb845d5641dab16cbe071dca0ac2b7a97fb
tree0e474552c5443291b58375429ddad17f1251df17
parentff218728c6953ede1957ddb5b039bcb2ba920a44
Avoid macro-generating a trailing comma in an enum.

gcc objects to this in -pedantic mode, which means other compilers are
technically entitled to object too if they like. Usually I try to
avoid it by putting a dummy value at the end of the enum, but I forgot
in this case.

(And I didn't notice, because _my_ local builds run without -pedantic,
on the grounds that configure.ac autodetects that my system's GTK
headers are not pedantic-clean. Oh well.)
loopy.c