zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: "Zsh Hackers' List" <zsh-workers@zsh.org>
Subject: Re: 5.0.2-test-3, arithmetic on pointer to void
Date: Mon, 09 Dec 2013 22:27:25 -0800	[thread overview]
Message-ID: <131209222725.ZM8235@torch.brasslantern.com> (raw)
In-Reply-To: <20131210032130.GA23075@ma.sdf.org>

On Dec 10,  3:21am, pda@sdf.org wrote:
}
} Creating "init.c", line 287: error #3143: arithmetic on pointer to void or function type
}       void *ptr = base + (optno < 0 ? -optno : optno);
}                        ^

As far as I can tell parseopts_insert is always passed a char* as base.
Might as well declare it for the way it's called rather than for the way
the pointer is used internally.

diff --git a/Src/init.c b/Src/init.c
index 7032ff8..53c4fbd 100644
--- a/Src/init.c
+++ b/Src/init.c
@@ -281,7 +281,7 @@ parseargs(char **argv, char **runscript)
 
 /**/
 static void
-parseopts_insert(LinkList optlist, void *base, int optno)
+parseopts_insert(LinkList optlist, char *base, int optno)
 {
     LinkNode node;
     void *ptr = base + (optno < 0 ? -optno : optno);


  reply	other threads:[~2013-12-10  6:27 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20131201194653.7a98a4a4@pws-pc.ntlworld.com>
     [not found] ` <20131202151557.1636@binki>
2013-12-02 16:08   ` 5.0.2-test-2 is available Peter Stephenson
2013-12-02 16:36     ` Bart Schaefer
2013-12-02 16:51       ` Peter Stephenson
2013-12-02 17:31         ` Bart Schaefer
2013-12-02 17:40           ` Peter Stephenson
2013-12-08 20:22         ` Peter Stephenson
2013-12-08 21:36           ` Bart Schaefer
2013-12-10  3:21           ` 5.0.2-test-3, arithmetic on pointer to void pda
2013-12-10  6:27             ` Bart Schaefer [this message]
2013-12-02 18:08       ` 5.0.2-test-2 is available Bart Schaefer
     [not found] ` <20131202155119.GR13790@sym.noone.org>
     [not found]   ` <20131202160133.7d77d7be@pwslap01u.europe.root.pri>
2013-12-02 16:16     ` Test suite failures on static build (was: 5.0.2-test-2 is available) Axel Beckert
2013-12-02 16:28       ` Peter Stephenson
2013-12-02 16:43       ` Bart Schaefer
2013-12-02 16:48         ` Axel Beckert
2013-12-02 16:57           ` [seems solved] " Axel Beckert
2013-12-02 17:20             ` One test suite failure left on static build (after $HOME has been fixed) Axel Beckert
2013-12-02 17:49               ` Bart Schaefer
     [not found] ` <20131202151502.GP13790@sym.noone.org>
2013-12-02 16:28   ` Test suite failures in 5.0.2-test-1 _and_ 5.0.2-test-3 on automatic build (was: Re: 5.0.2-test-2 is available) Axel Beckert
2013-12-02 17:22     ` Bart Schaefer
2013-12-02 18:25       ` Axel Beckert
2013-12-02 18:29         ` Bart Schaefer
2013-12-02 18:34         ` Bart Schaefer
2013-12-03  8:15           ` [SOLVED] " Axel Beckert
     [not found] ` <CAJ1KOAj6_KJL59OM_03JhzFLzSJvw_-N8zAeiv94kh7PpNdN0Q@mail.gmail.com>
     [not found]   ` <CAJ1KOAjJumPnzGWT+sg6-A34Aisp_+PfaCZkP3P8-LDpM7YJhg@mail.gmail.com>
2013-12-09 10:12     ` 5.0.2-test-2 is available Peter Stephenson
2013-12-09 10:16       ` İsmail Dönmez

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=131209222725.ZM8235@torch.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --cc=zsh-workers@zsh.org \
    /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).