bug-gettext
[Top][All Lists]
Advanced

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

[bug #63866] error: expected expression


From: Ryan Carsten Schmidt
Subject: [bug #63866] error: expected expression
Date: Mon, 29 Jan 2024 10:59:42 -0500 (EST)

Follow-up Comment #6, bug#63866 (group gettext):

The gnulib build results I posted on Jan 26 were not from OS X 10.9 so I'm not
sure why I posted them. I think I was using OS X 10.11 which does not have the
affected clang version.

I tried your latest gnulib tarball on OS X 10.9. ./configure and make
succeeded. make test failed one test, test-fma2, but I don't think that's
related to this issue.

gettext 0.22.4 still fails to build on OS X 10.9 with the error I originally
reported. Here is the first error and a warning; there are many more warnings
but as you said we're not as concerned with the warnings:


x-c.c:1561:15: error: expected expression
              FALLTHROUGH;
              ^
../libgrep/attribute.h:165:21: note: expanded from macro 'FALLTHROUGH'
#define FALLTHROUGH _GL_ATTRIBUTE_FALLTHROUGH
                    ^
../config.h:3211:37: note: expanded from macro '_GL_ATTRIBUTE_FALLTHROUGH'
#  define _GL_ATTRIBUTE_FALLTHROUGH __attribute__ ((__fallthrough__))
                                    ^
x-c.c:1676:15: warning: declaration does not declare anything
[-Wmissing-declarations]
              FALLTHROUGH;
              ^~~~~~~~~~~
../libgrep/attribute.h:165:21: note: expanded from macro 'FALLTHROUGH'
#define FALLTHROUGH _GL_ATTRIBUTE_FALLTHROUGH
                    ^~~~~~~~~~~~~~~~~~~~~~~~~
../config.h:3211:37: note: expanded from macro '_GL_ATTRIBUTE_FALLTHROUGH'
#  define _GL_ATTRIBUTE_FALLTHROUGH __attribute__ ((__fallthrough__))
                                    ^~~~~~~~~~~~~


Here's how I fixed it in MacPorts:

https://github.com/macports/macports-ports/blob/ee9941bcea5a4d7a43f3c88d43c2aa4975520b51/devel/gettext/files/has_attribute.patch



    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?63866>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

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