All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tobias Klausmann <tobias.johannes.klausmann-AqjdNwhu20eELgA04lAiVw@public.gmane.org>
To: Ilia Mirkin <imirkin-FrUbXkNCsVf2fBVCVOL8/A@public.gmane.org>
Cc: "nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org"
	<nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org>
Subject: Re: [PATCH 1/2] nouveau/compiler: fix trivial compiler warnings
Date: Wed, 8 Jul 2015 21:09:44 +0200	[thread overview]
Message-ID: <559D7578.4000401@mni.thm.de> (raw)
In-Reply-To: <CAKb7UvgWcP4765FZFApRPdUY76B1DpOqZyRxz3K5g-n85qq+1w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>



On 08.07.2015 20:38, Ilia Mirkin wrote:
> Compiler is wrong.

So just "nouveau: ..." then? Anyway, change it to your liking.

> On Wed, Jul 8, 2015 at 2:27 PM, Tobias Klausmann
> <tobias.johannes.klausmann@mni.thm.de> wrote:
>> nouveau_compiler.c: In function ‘main’:
>> nouveau_compiler.c:216:27: warning: ‘code’ may be used uninitialized in
>> this function [-Wmaybe-uninitialized]
>>         printf("%08x ", code[i / 4]);
>>                             ^
>> nouveau_compiler.c:215:4: warning: ‘size’ may be used uninitialized in
>> this function [-Wmaybe-uninitialized]
>>      for (i = 0; i < size; i += 4) {
>>
>> Signed-off-by: Tobias Klausmann <tobias.johannes.klausmann@mni.thm.de>
>> ---
>>   src/gallium/drivers/nouveau/nouveau_compiler.c | 2 +-
>>   1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/src/gallium/drivers/nouveau/nouveau_compiler.c b/src/gallium/drivers/nouveau/nouveau_compiler.c
>> index 8660498..ca128b5 100644
>> --- a/src/gallium/drivers/nouveau/nouveau_compiler.c
>> +++ b/src/gallium/drivers/nouveau/nouveau_compiler.c
>> @@ -144,7 +144,7 @@ main(int argc, char *argv[])
>>      const char *filename = NULL;
>>      FILE *f;
>>      char text[65536] = {0};
>> -   unsigned size, *code;
>> +   unsigned size = 0, *code = NULL;
>>
>>      for (i = 1; i < argc; i++) {
>>         if (!strcmp(argv[i], "-a"))
>> --
>> 2.4.5
>>
>> _______________________________________________
>> Nouveau mailing list
>> Nouveau@lists.freedesktop.org
>> http://lists.freedesktop.org/mailman/listinfo/nouveau

_______________________________________________
Nouveau mailing list
Nouveau@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/nouveau

  parent reply	other threads:[~2015-07-08 19:09 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-08 18:27 [PATCH 1/2] nouveau/compiler: fix trivial compiler warnings Tobias Klausmann
     [not found] ` <1436380066-19851-1-git-send-email-tobias.johannes.klausmann-AqjdNwhu20eELgA04lAiVw@public.gmane.org>
2015-07-08 18:27   ` [PATCH 2/2] nv50/ir: fix a compiler warning with debug-only code Tobias Klausmann
     [not found]     ` <1436380066-19851-2-git-send-email-tobias.johannes.klausmann-AqjdNwhu20eELgA04lAiVw@public.gmane.org>
2015-07-08 19:34       ` Emil Velikov
     [not found]         ` <CACvgo50rFAxxP8JfG_WvqTkvA74eUzfy9v-KTCSHeMSkCYO-zA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-07-08 19:40           ` Tobias Klausmann
     [not found]             ` <559D7C98.5090102-AqjdNwhu20eELgA04lAiVw@public.gmane.org>
2015-07-08 20:18               ` Ilia Mirkin
2015-07-08 18:38   ` [PATCH 1/2] nouveau/compiler: fix trivial compiler warnings Ilia Mirkin
     [not found]     ` <CAKb7UvgWcP4765FZFApRPdUY76B1DpOqZyRxz3K5g-n85qq+1w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-07-08 19:09       ` Tobias Klausmann [this message]
2015-07-08 19:31       ` Emil Velikov
     [not found]         ` <CACvgo52DmszQ4tA2FfCnXAy9vkUMse=zbgiHnNH23Mq3uR=C2Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-07-08 19:34           ` Tobias Klausmann
     [not found]             ` <559D7B41.5070802-AqjdNwhu20eELgA04lAiVw@public.gmane.org>
2015-07-08 19:42               ` Emil Velikov
     [not found]                 ` <CACvgo53WL88Esa9iDL=so=zj9PpkKVX90ks8zyrYUHj4Ag2oXw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-07-08 19:53                   ` Tobias Klausmann
     [not found]                     ` <559D7FC2.5060500-AqjdNwhu20eELgA04lAiVw@public.gmane.org>
2015-07-08 20:01                       ` Ilia Mirkin

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=559D7578.4000401@mni.thm.de \
    --to=tobias.johannes.klausmann-aqjdnwhu20eelga04laivw@public.gmane.org \
    --cc=imirkin-FrUbXkNCsVf2fBVCVOL8/A@public.gmane.org \
    --cc=nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.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.