Thanks to visit codestin.com
Credit goes to github.com

Skip to content

-Werror breaks the build process #158

@gvanuxem

Description

@gvanuxem

Apparently, it is the first time I compile Aldor, by default -Werror is used as STRICTCFLAGS or something like that. I had to remove it from config.status to build Aldor since there are some warnings during Aldor compilation.

What I did:

git clone --depth=1 https://github.com/aldorlang/aldor.git
cd aldor/aldor
./autogen.sh
./configure
make

And the build process stops with:

../../../aldor/aldor/src/macex.c: In function 'pushMacDef':
../../../aldor/aldor/src/macex.c:184:32: error: the comparison will always evaluate as 'true' for the address of 'val' will never be NULL [-Werror=address]
  184 |         if (! symInfo(name) || ! symCoInfo(name))
      |                                ^
In file included from ../../../aldor/aldor/src/macex.c:30:
../../../aldor/aldor/src/symcoinfo.h:19:11: note: 'val' declared here
   19 |         } val;
      |           ^~~
cc1: all warnings being treated as errors
make[4]: *** [Makefile:1729: macex.o] Error 1
make[4]: *** Waiting for unfinished jobs....

Regards

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions