<table><tr><td style="">mickaelbo created this revision.<br />mickaelbo added a reviewer: Framework: Syntax Highlighting.<br />Herald added projects: Kate, Frameworks.<br />Herald added a subscriber: kde-frameworks-devel.<br />mickaelbo requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D23484">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>With  gcc 7.4.0 (and maybe some other versions), "major" and "minor" are set as macro and expand to "gnu_dev_major" and "gnu_dev_minor".  <br />
See: <a href="https://bugzilla.redhat.com/show_bug.cgi?id=130601" class="remarkup-link" target="_blank" rel="noreferrer">https://bugzilla.redhat.com/show_bug.cgi?id=130601</a></p>

<p>These strings are used in the affected file for variable naming.<br />
The attached patch undef the gcc renaming.</p>

<p>A syntax-highlighting user, Jonathan, reported the issue, provided the patch and tested it  after trying to compile the project when the last commit was authored by me. Thank you Jonathan.</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>The compilation shall not fail with gcc 7.4.0.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R216 Syntax Highlighting</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D23484">https://phabricator.kde.org/D23484</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/indexer/katehighlightingindexer.cpp</div></div></div><br /><div><strong>To: </strong>mickaelbo, Framework: Syntax Highlighting<br /><strong>Cc: </strong>kde-frameworks-devel, kwrite-devel, LeGast00n, GB_2, domson, michaelh, ngraham, bruns, demsking, cullmann, sars, dhaumann<br /></div>