9front - general discussion about 9front
 help / color / mirror / Atom feed
From: Ori Bernstein <ori@eigenstate.org>
To: 9front@9front.org
Cc: cinap_lenrek@felloff.net
Subject: Re: [9front] Ape: Fix assert warnings.
Date: Tue, 18 Jun 2019 13:37:44 -0700	[thread overview]
Message-ID: <20190618133744.b22ad0e0b196293e0b3edd13@eigenstate.org> (raw)
In-Reply-To: <3D3F1554B533A0CDCBE6DCDADE6A7B23@felloff.net>

I'll look more at the compiler, instead of committing workarounds.

On Tue, 18 Jun 2019 18:46:19 +0200
cinap_lenrek@felloff.net wrote:

> no, stdio putc() macro has a different problem.
> 
> the null warning comes from trailing int cast
> after the character assignment:
> 
> CAST INT (1) /tmp/b.c:6[stdin:231]
>    AS CHAR (1) /tmp/b.c:6[stdin:231]
>       IND CHAR (1) /tmp/b.c:6[stdin:231]
>          POSTINC IND CHAR (1) /tmp/b.c:6[stdin:231]
>             NAME "_IO_stream" 48 <10> IND CHAR /tmp/b.c:6[stdin:231]
>             Z
>          Z
>       CONST "33" <20> CHAR /tmp/b.c:6[stdin:231]
>    Z
> 
> the compiler could statically know if the COND has a
> result and not insert the cast.
> 
> --
> cinap
> 


-- 
Ori Bernstein <ori@eigenstate.org>


  reply	other threads:[~2019-06-18 20:37 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-06-18 16:46 cinap_lenrek
2019-06-18 20:37 ` Ori Bernstein [this message]
  -- strict thread matches above, loose matches on Subject: below --
2019-06-18 14:37 cinap_lenrek
2019-06-18 14:35 cinap_lenrek
2019-06-18 16:36 ` Ori Bernstein
2019-06-18 14:26 cinap_lenrek
2019-06-18 11:57 cinap_lenrek

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=20190618133744.b22ad0e0b196293e0b3edd13@eigenstate.org \
    --to=ori@eigenstate.org \
    --cc=9front@9front.org \
    --cc=cinap_lenrek@felloff.net \
    /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.
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).