Hello Johannes!

[email protected] wrote in <d1654ee9a79007eb3f2f800687463894@schoe\
pfer.info>:
 |> please let me announce S-nail v14.9.12, the "Blue tit's spiral
 |> marriage swoop".
 |
 |I can't compile it with OPT_AUTOCC=0, build log attached.
 |OPT_AUTOCC=yes works.
 |
 |I'm on linux, x86_64, gcc 8.2.0., CFLAGS="-O2 -fPIC"

Please let met quote the problem in question

  ...
  |In file included from /tmp/s-nail-14.9.12/include/mx/nail.h:75,
  |                 from /tmp/s-nail-14.9.12/src/mx/main.c:42:
  |/tmp/s-nail-14.9.12/src/mx/main.c: In function 'a_main_setup_screen':
  |/tmp/s-nail-14.9.12/src/mx/main.c:280:32: error: expression in static 
assertion is not constant
  |    LCTAV(VAL_HEIGHT[0] != '\0' && (VAL_HEIGHT[1] == '\0' ||
  |/tmp/s-nail-14.9.12/include/su/code.h:171:38: note: in definition of macro 
'su_LCTA'
  | # define su_LCTA(T,M) _Static_assert(T, M)
  ...

This is a compiler bug, the expression is very well a constant, it
comes from make.rc and is transformed to a preprocessor #define,
which should be treated as a constant.  (gcc seems to have more
such problems, Jean-Marc Pigeon reported one more issue that
i also have seen before, where a numeric constant coming in via
preprocessor constant results in unused value warnings in
conditional expressions which clip the value to be in between some
MIN and MAX.)

I am using -std=c89 here, can you make it work when you pass this
additionally in $CFLAGS?
I am sorry for the inconvenience.. and will finally see whether,
and if, how i can address this somehow!

Ciao,

--steffen
|
|Der Kragenbaer,                The moon bear,
|der holt sich munter           he cheerfully and one by one
|einen nach dem anderen runter  wa.ks himself off
|(By Robert Gernhardt)

Reply via email to