]> granicus.if.org Git - multimarkdown/commit
FIXED: compiling with older gcc and used c standard
authorSilvio Fricke <silvio.fricke@gmail.com>
Mon, 15 May 2017 08:34:20 +0000 (10:34 +0200)
committerSilvio Fricke <silvio.fricke@harman.com>
Tue, 16 May 2017 06:18:22 +0000 (08:18 +0200)
commit97a2040637c845c160138d08fe9c8467baa02174
tree3e50bb4c9fc3f549bc1c1b11daa41e06c72a78af
parent0a3b890d890fe76a6b84a1d3fc3e2c79b316d73d
FIXED: compiling with older gcc and used c standard

With "gcc (Ubuntu 4.8.4-2ubuntu1~14.04.3) 4.8.4" we get the failure

    Scanning dependencies of target libMultiMarkdown
    [  3%] Building C object CMakeFiles/libMultiMarkdown.dir/Sources/libMultiMarkdown/aho-corasick.c.o
    /MultiMarkdown-6/Sources/libMultiMarkdown/aho-corasick.c: In function ‘ac_trie_node_prepare’:
    /MultiMarkdown-6/Sources/libMultiMarkdown/aho-corasick.c:283:2: error: ‘for’ loop initial declarations are only allowed in C99 mode
      for (int i = 0; i < 256; ++i)
      ^
    [...]

Signed-off-by: Silvio Fricke <silvio.fricke@gmail.com>
CMakeLists.txt