simon-git: puzzles (master): Simon Tatham

Commits to Tartarus hosted VCS tartarus-commits at lists.tartarus.org
Sun Sep 24 16:59:18 BST 2017


TL;DR:
  df3b9cb Avoid macro-generating a trailing comma in an enum.

Repository:     https://git.tartarus.org/simon/puzzles.git
On the web:     https://git.tartarus.org/?p=simon/puzzles.git
Branch updated: master
Committer:      Simon Tatham <anakin at pobox.com>
Date:           2017-09-24 16:59:18

commit df3b9cb845d5641dab16cbe071dca0ac2b7a97fb
web diff https://git.tartarus.org/?p=simon/puzzles.git;a=commitdiff;h=df3b9cb845d5641dab16cbe071dca0ac2b7a97fb;hp=ff218728c6953ede1957ddb5b039bcb2ba920a44
Author: Simon Tatham <anakin at pobox.com>
Date:   Sun Sep 24 16:56:18 2017 +0100

    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 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)



More information about the tartarus-commits mailing list