Skip to contentSkip to conversation

sizeof() problem

DISCUSSION Michael Stefaniuc 1 participant 1 message Jun 4, 2007 Sparse checker

lore
Share & tools
lore
#0 lore raw

Hello!

Running sparse on

	int i = sizeof((const char []) {'a','a','a',0});

gives
zzz.c:1:9: error: cannot size expression

There are a few of those errors in Wine (char replaced with WCHAR).

bye
michael

Signature · 5 lines
Michael Stefaniuc               Tel.: +49-711-96437-199
Sr. Network Engineer            Fax.: +49-711-96437-111
Red Hat GmbH                    Email: [email protected]
Hauptstaetterstr. 58            http://www.redhat.de/
D-70178 Stuttgart