zsh-workers
 help / color / mirror / code / Atom feed
From: "Andrej Borsenkow" <Andrej.Borsenkow@mow.siemens.ru>
To: "ZSH workers mailing list" <zsh-workers@sunsite.auc.dk>
Subject: Please, do NOT use GCC as development compiler (or, at least, turn on some conformance checking).
Date: Fri, 3 Mar 2000 12:21:58 +0300	[thread overview]
Message-ID: <000201bf84f1$ed1c8fc0$21c9ca95@mow.siemens.ru> (raw)

parse.c  2426: [error]:   CFE1137 expression must be a modifiable lvalue
        fdflags(pre) = (map ? FDF_MAP : 0) | other;
        ^

parse.c  2427: [error]:   CFE1137 expression must be a modifiable lvalue
        fdsetother(pre, tlen);
        ^

parse.c  2427: [error]:   CFE1137 expression must be a modifiable lvalue
        fdsetother(pre, tlen);
        ^

parse.c  2427: [error]:   CFE1137 expression must be a modifiable lvalue
        fdsetother(pre, tlen);


That all originates from fdbyte() macro, that looks like:

#define fdbyte(f, i)     ((wordcode) (((unsigned char *) (((Wordcode) (f)) +
1))[i]))

You take a _char_ value and cast it to wordcode == int. This_is_not_lvalue
and can not be assigned to (most probable implementation is temporary
storage in stack or register). I have no idea, what GCC does with it.

So, the simplest way is to provide two sets of macros - GET and SET. And,
BTW, why are they in lower case? I'd prefer such macros in upper case - as
is customary in C ...

cheers

/andrej


                 reply	other threads:[~2000-03-03  9:22 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='000201bf84f1$ed1c8fc0$21c9ca95@mow.siemens.ru' \
    --to=andrej.borsenkow@mow.siemens.ru \
    --cc=zsh-workers@sunsite.auc.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).