diff options
author | Adam Jackson <ajax@redhat.com> | 2018-04-11 15:39:33 -0400 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2018-04-12 17:15:15 -0400 |
commit | 0031bbad8400d35699664d18c0d8fc2e9e82d8a7 (patch) | |
tree | 4e2e06d68c952f9eefbcc8a9fedf2a785acb9b26 | |
parent | d61e516c847b9ff7e89e6be269050032070c1ad3 (diff) |
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>
-rwxr-xr-x | hw/xfree86/sdksyms.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/xfree86/sdksyms.sh b/hw/xfree86/sdksyms.sh index d927fcd16..fc171d918 100755 --- a/hw/xfree86/sdksyms.sh +++ b/hw/xfree86/sdksyms.sh @@ -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); } } |