--- Comment #4 from trick at icculus dot org 2009-02-11 13:38 ---
This also happens when dereferencing void pointers (this is invalid code
though, but I get the same error with the code in the first post):
void foo (void *p)
{
asm("" :: "g" (*p));
}
$ gc
--- Comment #2 from trick at icculus dot org 2007-08-13 20:03 ---
(In reply to comment #1)
> And I don't see why it is wrong to warn here because it is /* still as // is
> really two tokens and so is /* .
Shouldn't //* be treated as '//' followed b
ct: gcc
Version: 4.2.1
Status: UNCONFIRMED
Severity: minor
Priority: P3
Component: preprocessor
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: trick at icculus dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33063
--- Comment #10 from trick at icculus dot org 2005-12-22 10:38 ---
Maybe you could add a new variable attribute so that these warnings could at
least be avoided in cases where the coder knows the code is correct ?
Something like:
int x __attribute__((__notuninited__));
if (y) x = 0
--- Additional Comments From trick at icculus dot org 2004-12-14 12:52
---
This only affects precompiled headers. Continuing from before:
$ echo '#define TEST2' > test2.h
$ echo '#include "test2.h"' >> test.c
$ cat test.c
#include "test.h&q
n: 3.4.2
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: pch
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: trick at icculus dot org
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18980