* [PATCH 1/2] nouveau/compiler: fix trivial compiler warnings
@ 2015-07-08 18:27 Tobias Klausmann
[not found] ` <1436380066-19851-1-git-send-email-tobias.johannes.klausmann-AqjdNwhu20eELgA04lAiVw@public.gmane.org>
0 siblings, 1 reply; 12+ messages in thread
From: Tobias Klausmann @ 2015-07-08 18:27 UTC (permalink / raw)
To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW
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
^ permalink raw reply related [flat|nested] 12+ messages in thread[parent not found: <1436380066-19851-1-git-send-email-tobias.johannes.klausmann-AqjdNwhu20eELgA04lAiVw@public.gmane.org>]
* [PATCH 2/2] nv50/ir: fix a compiler warning with debug-only code [not found] ` <1436380066-19851-1-git-send-email-tobias.johannes.klausmann-AqjdNwhu20eELgA04lAiVw@public.gmane.org> @ 2015-07-08 18:27 ` Tobias Klausmann [not found] ` <1436380066-19851-2-git-send-email-tobias.johannes.klausmann-AqjdNwhu20eELgA04lAiVw@public.gmane.org> 2015-07-08 18:38 ` [PATCH 1/2] nouveau/compiler: fix trivial compiler warnings Ilia Mirkin 1 sibling, 1 reply; 12+ messages in thread From: Tobias Klausmann @ 2015-07-08 18:27 UTC (permalink / raw) To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW codegen/nv50_ir_emit_nv50.cpp: In member function ‘void nv50_ir::CodeEmitterNV50::emitLOAD(const nv50_ir::Instruction*)’: codegen/nv50_ir_emit_nv50.cpp:620:12: warning: unused variable ‘offset’ [-Wunused-variable] int32_t offset = i->getSrc(0)->reg.data.offset; Signed-off-by: Tobias Klausmann <tobias.johannes.klausmann@mni.thm.de> --- src/gallium/drivers/nouveau/codegen/nv50_ir_emit_nv50.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_nv50.cpp b/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_nv50.cpp index 67ea6df..86b16f2 100644 --- a/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_nv50.cpp +++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_nv50.cpp @@ -616,8 +616,11 @@ CodeEmitterNV50::emitLoadStoreSizeCS(DataType ty) void CodeEmitterNV50::emitLOAD(const Instruction *i) { - DataFile sf = i->src(0).getFile(); +#ifdef DEBUG int32_t offset = i->getSrc(0)->reg.data.offset; +#endif + + DataFile sf = i->src(0).getFile(); switch (sf) { case FILE_SHADER_INPUT: -- 2.4.5 _______________________________________________ Nouveau mailing list Nouveau@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/nouveau ^ permalink raw reply related [flat|nested] 12+ messages in thread
[parent not found: <1436380066-19851-2-git-send-email-tobias.johannes.klausmann-AqjdNwhu20eELgA04lAiVw@public.gmane.org>]
* Re: [PATCH 2/2] nv50/ir: fix a compiler warning with debug-only code [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> 0 siblings, 1 reply; 12+ messages in thread From: Emil Velikov @ 2015-07-08 19:34 UTC (permalink / raw) To: Tobias Klausmann; +Cc: ML nouveau On 8 July 2015 at 19:27, Tobias Klausmann <tobias.johannes.klausmann@mni.thm.de> wrote: > codegen/nv50_ir_emit_nv50.cpp: In member function > ‘void nv50_ir::CodeEmitterNV50::emitLOAD(const nv50_ir::Instruction*)’: > codegen/nv50_ir_emit_nv50.cpp:620:12: warning: unused variable ‘offset’ > [-Wunused-variable] > int32_t offset = i->getSrc(0)->reg.data.offset; > > Signed-off-by: Tobias Klausmann <tobias.johannes.klausmann@mni.thm.de> > --- > src/gallium/drivers/nouveau/codegen/nv50_ir_emit_nv50.cpp | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > > diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_nv50.cpp b/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_nv50.cpp > index 67ea6df..86b16f2 100644 > --- a/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_nv50.cpp > +++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_nv50.cpp > @@ -616,8 +616,11 @@ CodeEmitterNV50::emitLoadStoreSizeCS(DataType ty) > void > CodeEmitterNV50::emitLOAD(const Instruction *i) > { > - DataFile sf = i->src(0).getFile(); > +#ifdef DEBUG > int32_t offset = i->getSrc(0)->reg.data.offset; > +#endif > + assert is (normally) guarded by NDEBUG. Mesa/gallium has an in-house replacement, which (not 100% sure) should be fine as well. -Emil _______________________________________________ Nouveau mailing list Nouveau@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/nouveau ^ permalink raw reply [flat|nested] 12+ messages in thread
[parent not found: <CACvgo50rFAxxP8JfG_WvqTkvA74eUzfy9v-KTCSHeMSkCYO-zA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>]
* Re: [PATCH 2/2] nv50/ir: fix a compiler warning with debug-only code [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> 0 siblings, 1 reply; 12+ messages in thread From: Tobias Klausmann @ 2015-07-08 19:40 UTC (permalink / raw) To: Emil Velikov; +Cc: ML nouveau On 08.07.2015 21:34, Emil Velikov wrote: > On 8 July 2015 at 19:27, Tobias Klausmann > <tobias.johannes.klausmann@mni.thm.de> wrote: >> codegen/nv50_ir_emit_nv50.cpp: In member function >> ‘void nv50_ir::CodeEmitterNV50::emitLOAD(const nv50_ir::Instruction*)’: >> codegen/nv50_ir_emit_nv50.cpp:620:12: warning: unused variable ‘offset’ >> [-Wunused-variable] >> int32_t offset = i->getSrc(0)->reg.data.offset; >> >> Signed-off-by: Tobias Klausmann <tobias.johannes.klausmann@mni.thm.de> >> --- >> src/gallium/drivers/nouveau/codegen/nv50_ir_emit_nv50.cpp | 5 ++++- >> 1 file changed, 4 insertions(+), 1 deletion(-) >> >> diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_nv50.cpp b/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_nv50.cpp >> index 67ea6df..86b16f2 100644 >> --- a/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_nv50.cpp >> +++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_nv50.cpp >> @@ -616,8 +616,11 @@ CodeEmitterNV50::emitLoadStoreSizeCS(DataType ty) >> void >> CodeEmitterNV50::emitLOAD(const Instruction *i) >> { >> - DataFile sf = i->src(0).getFile(); >> +#ifdef DEBUG >> int32_t offset = i->getSrc(0)->reg.data.offset; >> +#endif >> + > assert is (normally) guarded by NDEBUG. Mesa/gallium has an in-house > replacement, which (not 100% sure) should be fine as well. > > -Emil As far as i can see it in u_debug.h assert (debug_assert) is guarded by DEBUG as the above change... _______________________________________________ Nouveau mailing list Nouveau@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/nouveau ^ permalink raw reply [flat|nested] 12+ messages in thread
[parent not found: <559D7C98.5090102-AqjdNwhu20eELgA04lAiVw@public.gmane.org>]
* Re: [PATCH 2/2] nv50/ir: fix a compiler warning with debug-only code [not found] ` <559D7C98.5090102-AqjdNwhu20eELgA04lAiVw@public.gmane.org> @ 2015-07-08 20:18 ` Ilia Mirkin 0 siblings, 0 replies; 12+ messages in thread From: Ilia Mirkin @ 2015-07-08 20:18 UTC (permalink / raw) To: Tobias Klausmann; +Cc: ML nouveau, Emil Velikov I suspect the issue is actually that u_debug.h isn't included. It defines assert to be debug_assert, which in turn is #define debug_assert(expr) (void)(0 && (expr)) which should cause the relevant var to be seen as used. On Wed, Jul 8, 2015 at 3:40 PM, Tobias Klausmann <tobias.johannes.klausmann@mni.thm.de> wrote: > > > On 08.07.2015 21:34, Emil Velikov wrote: >> >> On 8 July 2015 at 19:27, Tobias Klausmann >> <tobias.johannes.klausmann@mni.thm.de> wrote: >>> >>> codegen/nv50_ir_emit_nv50.cpp: In member function >>> ‘void nv50_ir::CodeEmitterNV50::emitLOAD(const nv50_ir::Instruction*)’: >>> codegen/nv50_ir_emit_nv50.cpp:620:12: warning: unused variable ‘offset’ >>> [-Wunused-variable] >>> int32_t offset = i->getSrc(0)->reg.data.offset; >>> >>> Signed-off-by: Tobias Klausmann <tobias.johannes.klausmann@mni.thm.de> >>> --- >>> src/gallium/drivers/nouveau/codegen/nv50_ir_emit_nv50.cpp | 5 ++++- >>> 1 file changed, 4 insertions(+), 1 deletion(-) >>> >>> diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_nv50.cpp >>> b/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_nv50.cpp >>> index 67ea6df..86b16f2 100644 >>> --- a/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_nv50.cpp >>> +++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_nv50.cpp >>> @@ -616,8 +616,11 @@ CodeEmitterNV50::emitLoadStoreSizeCS(DataType ty) >>> void >>> CodeEmitterNV50::emitLOAD(const Instruction *i) >>> { >>> - DataFile sf = i->src(0).getFile(); >>> +#ifdef DEBUG >>> int32_t offset = i->getSrc(0)->reg.data.offset; >>> +#endif >>> + >> >> assert is (normally) guarded by NDEBUG. Mesa/gallium has an in-house >> replacement, which (not 100% sure) should be fine as well. >> >> -Emil > > As far as i can see it in u_debug.h assert (debug_assert) is guarded by > DEBUG as the above change... > > _______________________________________________ > 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 ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH 1/2] nouveau/compiler: fix trivial compiler warnings [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 @ 2015-07-08 18:38 ` Ilia Mirkin [not found] ` <CAKb7UvgWcP4765FZFApRPdUY76B1DpOqZyRxz3K5g-n85qq+1w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 1 sibling, 1 reply; 12+ messages in thread From: Ilia Mirkin @ 2015-07-08 18:38 UTC (permalink / raw) To: Tobias Klausmann Cc: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org Compiler is wrong. 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 ^ permalink raw reply [flat|nested] 12+ messages in thread
[parent not found: <CAKb7UvgWcP4765FZFApRPdUY76B1DpOqZyRxz3K5g-n85qq+1w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>]
* Re: [PATCH 1/2] nouveau/compiler: fix trivial compiler warnings [not found] ` <CAKb7UvgWcP4765FZFApRPdUY76B1DpOqZyRxz3K5g-n85qq+1w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> @ 2015-07-08 19:09 ` Tobias Klausmann 2015-07-08 19:31 ` Emil Velikov 1 sibling, 0 replies; 12+ messages in thread From: Tobias Klausmann @ 2015-07-08 19:09 UTC (permalink / raw) To: Ilia Mirkin; +Cc: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@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 ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH 1/2] nouveau/compiler: fix trivial compiler warnings [not found] ` <CAKb7UvgWcP4765FZFApRPdUY76B1DpOqZyRxz3K5g-n85qq+1w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 2015-07-08 19:09 ` Tobias Klausmann @ 2015-07-08 19:31 ` Emil Velikov [not found] ` <CACvgo52DmszQ4tA2FfCnXAy9vkUMse=zbgiHnNH23Mq3uR=C2Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 1 sibling, 1 reply; 12+ messages in thread From: Emil Velikov @ 2015-07-08 19:31 UTC (permalink / raw) To: Ilia Mirkin; +Cc: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org Curious how many times this needs to come along, for you to change your mind. :-) On 8 July 2015 at 19:38, Ilia Mirkin <imirkin@alum.mit.edu> wrote: > Compiler is wrong. > > 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 _______________________________________________ Nouveau mailing list Nouveau@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/nouveau ^ permalink raw reply [flat|nested] 12+ messages in thread
[parent not found: <CACvgo52DmszQ4tA2FfCnXAy9vkUMse=zbgiHnNH23Mq3uR=C2Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>]
* Re: [PATCH 1/2] nouveau/compiler: fix trivial compiler warnings [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> 0 siblings, 1 reply; 12+ messages in thread From: Tobias Klausmann @ 2015-07-08 19:34 UTC (permalink / raw) To: Emil Velikov, Ilia Mirkin Cc: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org Mh i'm not aware of me ever changed the "nouveau_compiler". But i'm happy to see this made you laugh, so it has something positive at least... :/ On 08.07.2015 21:31, Emil Velikov wrote: > Curious how many times this needs to come along, for you to change > your mind. :-) > > On 8 July 2015 at 19:38, Ilia Mirkin <imirkin@alum.mit.edu> wrote: >> Compiler is wrong. >> >> 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 _______________________________________________ Nouveau mailing list Nouveau@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/nouveau ^ permalink raw reply [flat|nested] 12+ messages in thread
[parent not found: <559D7B41.5070802-AqjdNwhu20eELgA04lAiVw@public.gmane.org>]
* Re: [PATCH 1/2] nouveau/compiler: fix trivial compiler warnings [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> 0 siblings, 1 reply; 12+ messages in thread From: Emil Velikov @ 2015-07-08 19:42 UTC (permalink / raw) To: Tobias Klausmann Cc: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org On 8 July 2015 at 20:34, Tobias Klausmann <tobias.johannes.klausmann@mni.thm.de> wrote: > Mh i'm not aware of me ever changed the "nouveau_compiler". But i'm happy to > see this made you laugh, so it has something positive at least... :/ > Story time: This particular compiler warning has been brought up (incl here) four or five times. Each time, Ilia feels reluctant about the fix as the (gcc) compiler gets it wrong. Personally I do not see a problem with explicitly initialising the variable at this instance, yet I'm curious for how long Ilia will say "no" to this (type of) patch(es) :-P No offence, I just find it funny. Emil _______________________________________________ Nouveau mailing list Nouveau@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/nouveau ^ permalink raw reply [flat|nested] 12+ messages in thread
[parent not found: <CACvgo53WL88Esa9iDL=so=zj9PpkKVX90ks8zyrYUHj4Ag2oXw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>]
* Re: [PATCH 1/2] nouveau/compiler: fix trivial compiler warnings [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> 0 siblings, 1 reply; 12+ messages in thread From: Tobias Klausmann @ 2015-07-08 19:53 UTC (permalink / raw) To: Emil Velikov; +Cc: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org On 08.07.2015 21:42, Emil Velikov wrote: > On 8 July 2015 at 20:34, Tobias Klausmann > <tobias.johannes.klausmann@mni.thm.de> wrote: >> Mh i'm not aware of me ever changed the "nouveau_compiler". But i'm happy to >> see this made you laugh, so it has something positive at least... :/ >> > Story time: > This particular compiler warning has been brought up (incl here) four > or five times. Each time, Ilia feels reluctant about the fix as the > (gcc) compiler gets it wrong. > > Personally I do not see a problem with explicitly initialising the > variable at this instance, yet I'm curious for how long Ilia will say > "no" to this (type of) patch(es) :-P > > No offence, I just find it funny. > Emil Oh i did even answer in a thread for a patch from Martin where he propose the same change (even with the same prefix :D). Ilia maybe you should take this after all, as it seems you are haunted by this :P _______________________________________________ Nouveau mailing list Nouveau@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/nouveau ^ permalink raw reply [flat|nested] 12+ messages in thread
[parent not found: <559D7FC2.5060500-AqjdNwhu20eELgA04lAiVw@public.gmane.org>]
* Re: [PATCH 1/2] nouveau/compiler: fix trivial compiler warnings [not found] ` <559D7FC2.5060500-AqjdNwhu20eELgA04lAiVw@public.gmane.org> @ 2015-07-08 20:01 ` Ilia Mirkin 0 siblings, 0 replies; 12+ messages in thread From: Ilia Mirkin @ 2015-07-08 20:01 UTC (permalink / raw) To: Tobias Klausmann Cc: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org, Emil Velikov I don't mind telling people that the compiler is wrong :) On Wed, Jul 8, 2015 at 3:53 PM, Tobias Klausmann <tobias.johannes.klausmann@mni.thm.de> wrote: > > > On 08.07.2015 21:42, Emil Velikov wrote: >> >> On 8 July 2015 at 20:34, Tobias Klausmann >> <tobias.johannes.klausmann@mni.thm.de> wrote: >>> >>> Mh i'm not aware of me ever changed the "nouveau_compiler". But i'm happy >>> to >>> see this made you laugh, so it has something positive at least... :/ >>> >> Story time: >> This particular compiler warning has been brought up (incl here) four >> or five times. Each time, Ilia feels reluctant about the fix as the >> (gcc) compiler gets it wrong. >> >> Personally I do not see a problem with explicitly initialising the >> variable at this instance, yet I'm curious for how long Ilia will say >> "no" to this (type of) patch(es) :-P >> >> No offence, I just find it funny. >> Emil > > Oh i did even answer in a thread for a patch from Martin where he propose > the same change (even with the same prefix :D). Ilia maybe you should take > this after all, as it seems you are haunted by this :P _______________________________________________ Nouveau mailing list Nouveau@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/nouveau ^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2015-07-08 20:18 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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
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.