Commit 0031bbad authored by Adam Jackson's avatar Adam Jackson 🥃

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's avatarThomas Klausner <>
Signed-off-by: Adam Jackson's avatarAdam Jackson <>
parent d61e516c
......@@ -415,7 +415,8 @@ BEGIN {
sub(/[^a-zA-Z0-9_].*/, "", symbol);
printf(" (void *) &%-50s /* %s:%s */\n", symbol ",", header, line);
if (symbol != "")
printf(" (void *) &%-50s /* %s:%s */\n", symbol ",", header, line);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment