the __attribute((unused)) of that line is supposed to prevent that error...

what compiler are you using ?


On Sat, Jul 12, 2014 at 8:23 PM, Kasun Chathuranga <[email protected]> wrote:

>  Hello,
> I am using Fedora 20 x64 version.
>
> It was not possible built dt due to
>
> /media/M-Drive/Software/Source/darktable/src/common/darktable.c: In
> function ‘dt_init’:
> /media/M-Drive/Software/Source/darktable/src/common/darktable.c:462:9:
> error: variable ‘lua_command’ set but not used
> [-Werror=unused-but-set-variable]
>    char *lua_command  __attribute__((unused))= NULL;
>          ^
> cc1: all warnings being treated as errors
> make[2]: *** [src/CMakeFiles/lib_darktable.dir/common/darktable.c.o] Error
> 1
> make[2]: *** Waiting for unfinished jobs....
> make[1]: *** [src/CMakeFiles/lib_darktable.dir/all] Error 2
> make: *** [all] Error 2
>
> Full console log attached.
>
> Could any one help me to build it?
>
> Thank You.
>
> Best Regards,
> Kasun Chathuranga
>
>
>
>
>
> ------------------------------------------------------------------------------
>
> _______________________________________________
> Darktable-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/darktable-users
>
>
------------------------------------------------------------------------------
_______________________________________________
Darktable-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/darktable-users

Reply via email to