Login | Register
My pages Projects Community openCollabNet

Discussions > issues > [Issue 19] New - fsvs 1.2.6 fails to build: function definition is not allowed here

fsvs
Discussion topic

Hide all messages in topic

All messages in topic

[Issue 19] fsvs 1.2.6 fails to build: function definition is not allowed here

Author ryandesign
Full name Ryan Schmidt
Date 2015-07-26 23:51:51 PDT
Message http://fsvs.tigris.o​rg/issues/show_bug.c​gi?id=19






------- Additional comments from ryandesign at tigris dot org Sun Jul 26 23:51:51 -0700 2015 -------
Thanks, that does work. I've updated fsvs in MacPorts to 1.2.6 plus that patch.

[Issue 19] fsvs 1.2.6 fails to build: function definition is not allowed here

Author pmarek
Full name P.Marek
Date 2015-07-26 22:48:49 PDT
Message http://fsvs.tigris.o​rg/issues/show_bug.c​gi?id=19



User pmarek changed the following:

                What |Old value |New value
====================​====================​====================​====================​
                  Status|NEW |RESOLVED
--------------------​--------------------​--------------------​--------------------​
              Resolution| |FIXED
--------------------​--------------------​--------------------​--------------------​




------- Additional comments from pmarek at tigris dot org Sun Jul 26 22:48:49 -0700 2015 -------
Does r2472 (on the fsvs-1.2.x branch,
http://fsvs.tigris.o​rg/svn/fsvs/branches​/fsvs-1.2.x) work for you?

[Issue 19] New - fsvs 1.2.6 fails to build: function definition is not allowed here

Author ryandesign
Full name Ryan Schmidt
Date 2015-07-26 13:01:29 PDT
Message http://fsvs.tigris.o​rg/issues/show_bug.c​gi?id=19
                 Issue #|19
                 Summary|fsvs 1.2.6 fails to build: function definition is not
                        |allowed here
               Component|fsvs
                 Version|current
                Platform|Linux
              OS/Version|All
                     URL|
                  Status|NEW
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P3
            Subcomponent|core
             Assigned to|pmarek
             Reported by|ryandesign






------- Additional comments from ryandesign at tigris dot org Sun Jul 26 13:01:28 -0700 2015 -------
Hello, I'm the maintainer of fsvs in the MacPorts package management system. fsvs 1.2.6 does not
build with clang on OS X 10.10:

waa.c:773:2: error: function definition is not allowed here
        {
        ^

This looks like a nested function definition. I wasn't aware that that was even possible in C/C++
code, and the clang documentation says it is a nonstandard feature of gcc that clang does not
support:

http://clang.llvm.or​g/docs/UsersManual.h​tml#gcc-extensions-n​ot-implemented-yet

$ clang -v
Apple LLVM version 6.1.0 (clang-602.0.53) (based on LLVM 3.6.0svn)
Target: x86_64-apple-darwin14.5.0
Thread model: posix

$ sw_vers
ProductName: Mac OS X
ProductVersion: 10.10.5
BuildVersion: 14F6a
Messages per page: