All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jens Axboe <axboe@kernel.dk>
To: Daniel Gollub <daniel.gollub@t-online.de>, fio@vger.kernel.org
Cc: Daniel Gollub <d.gollub@telekom.de>
Subject: Re: [PATCH] Fix g++ warning about void* used in arithmetic
Date: Wed, 12 Feb 2014 21:11:21 -0700	[thread overview]
Message-ID: <52FC45E9.3090101@kernel.dk> (raw)
In-Reply-To: <1392229542-14083-1-git-send-email-d.gollub@telekom.de>

On 2014-02-12 11:25, Daniel Gollub wrote:
> ../parse.h: In function ‘void* td_var(thread_options*, fio_option*, unsigned int)’:
> ../parse.h:110:10: warning: pointer of type ‘void *’ used in arithmetic [-Wpointer-arith]
> ../parse.h:112:9: warning: pointer of type ‘void *’ used in arithmetic [-Wpointer-arith]

I bet there are a lot of these, or other similar code that would prevent 
compiling with g++. I'm dubious of the value add here. Fio is written in 
C, after all.

-- 
Jens Axboe



  reply	other threads:[~2014-02-13  4:11 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-12 18:25 [PATCH] Fix g++ warning about void* used in arithmetic Daniel Gollub
2014-02-13  4:11 ` Jens Axboe [this message]
2014-02-13  6:13   ` Daniel Gollub
2014-02-13 10:32     ` Erwan Velu
2014-02-13 16:27       ` fio ioengines for CEPH (was: RE: [PATCH] Fix g++ warning about void* used in arithmetic) Gollub, Daniel
2014-02-13 15:05     ` [PATCH] Fix g++ warning about void* used in arithmetic Jens Axboe

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=52FC45E9.3090101@kernel.dk \
    --to=axboe@kernel.dk \
    --cc=d.gollub@telekom.de \
    --cc=daniel.gollub@t-online.de \
    --cc=fio@vger.kernel.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.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.