xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Olaf Hering <olaf@aepfle.de>
To: Juergen Gross <jgross@suse.com>
Cc: xen-devel@lists.xenproject.org, wei.liu2@citrix.com,
	ian.jackson@eu.citrix.com
Subject: Re: [PATCH] tools/xen-detect: try sysfs node for obtaining guest type
Date: Wed, 21 Jun 2017 16:24:33 +0200	[thread overview]
Message-ID: <20170621142433.GA25439@aepfle.de> (raw)
In-Reply-To: <20170615095827.15265-1-jgross@suse.com>


[-- Attachment #1.1: Type: text/plain, Size: 514 bytes --]

On Thu, Jun 15, Juergen Gross wrote:

> +++ b/tools/misc/xen-detect.c

> +        asprintf(&ver, "V%u.%u",
> +                 (uint16_t)(regs[0] >> 16), (uint16_t)regs[0]);

> +        asprintf(&ver, "V%s.%s", str, tmp);

This fails to build:

xen-detect.c:196:17: error: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Werror=unused-result]
xen-detect.c:93:17: error: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Werror=unused-result]

Olaf

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 195 bytes --]

[-- Attachment #2: Type: text/plain, Size: 127 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

  parent reply	other threads:[~2017-06-21 14:24 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-15  9:58 [PATCH] tools/xen-detect: try sysfs node for obtaining guest type Juergen Gross
2017-06-20 11:05 ` Wei Liu
2017-06-21 14:24 ` Olaf Hering [this message]
2017-06-21 14:27   ` Wei Liu
2017-06-21 14:32     ` Olaf Hering
2017-06-21 15:00     ` Ian Jackson

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=20170621142433.GA25439@aepfle.de \
    --to=olaf@aepfle.de \
    --cc=ian.jackson@eu.citrix.com \
    --cc=jgross@suse.com \
    --cc=wei.liu2@citrix.com \
    --cc=xen-devel@lists.xenproject.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 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).