https://bugs.kde.org/show_bug.cgi?id=363111

            Bug ID: 363111
           Summary: ki18n 5.22.0 compile fails with 'translation_found'
                    was not declared in this scope
           Product: frameworks-ki18n
           Version: 5.22.0
          Platform: Gentoo Packages
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: caslav.i...@gmx.net
          Reporter: jan_br...@gmx.net
                CC: kdelibs-b...@kde.org

Created attachment 98998
  --> https://bugs.kde.org/attachment.cgi?id=98998&action=edit
Fix the compile by moving the definition before the #ifdef.

The variable translation_found is defined in the else branch of the #ifdef
_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS block in gettext.h before line 180, but
used unconditionally in line 180.

The compile fails with
/var/tmp/portage/kde-frameworks/ki18n-5.22.0/work/ki18n-5.22.0/src/gettext.h:180:9:
error: 'translation_found' was not declared in this scope
         translation_found = !(translation == msg_ctxt_id || translation ==
msgid_plural);
         ^

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to