bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

switch to C99 breaks DFA tests


From: Assaf Gordon
Subject: switch to C99 breaks DFA tests
Date: Tue, 10 Jan 2017 16:27:33 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1

Hello all,

I noticed that some standalone tests now fail because they use c99
constructs.

For example:

    ./gnulib-tool --create-testdir --dir test1 dfa
    cd test1
    ./configure
    make

fails with:
    dfa.c: In function ‘fillset’:
    dfa.c:727:3: error: ‘for’ loop initial declarations are only \
                                              allowed in C99 mode
       for (int i = 0; i < CHARCLASS_WORDS; i++)
       ^

as a work-around, running with
   make CFLAGS="-std=c99"
works fine.

regards,
 - assaf




reply via email to

[Prev in Thread] Current Thread [Next in Thread]