mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-02-21 15:40:37 +01:00
sdksyms: Skip empty symbols
Apparently on NetBSD we can hit failures like this:
sdksyms.c:1773:15: error: expected expression before ',' token
(void *) &, /* ../../dri3/dri3.h:110 */
I've been unable to reproduce that locally (even in a NetBSD vm), but
an obvious workaround might be to just notice empty symbol names and
ignore them rather than emit invalid C code.
Tested-by: Thomas Klausner <wiz@netbsd.org>
Signed-off-by: Adam Jackson <ajax@redhat.com>
This commit is contained in:
parent
d61e516c84
commit
0031bbad84
1 changed files with 2 additions and 1 deletions
|
|
@ -415,7 +415,8 @@ BEGIN {
|
|||
sub(/[^a-zA-Z0-9_].*/, "", symbol);
|
||||
|
||||
#print;
|
||||
printf(" (void *) &%-50s /* %s:%s */\n", symbol ",", header, line);
|
||||
if (symbol != "")
|
||||
printf(" (void *) &%-50s /* %s:%s */\n", symbol ",", header, line);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue