diff options
author | Blue Swirl <blauwirbel@gmail.com> | 2011-01-23 11:43:25 +0000 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2011-01-23 11:43:25 +0000 |
commit | ba76a84d2d420ccab7383bb60c61b96491f50b33 (patch) | |
tree | 635577a64823da8818a7864b228fc5b087238523 /scripts/feature_to_c.sh | |
parent | 225d02cd1a34d5d87e8acefbf8e244a5d12f5f8c (diff) | |
download | qemu-ba76a84d2d420ccab7383bb60c61b96491f50b33.tar.gz qemu-ba76a84d2d420ccab7383bb60c61b96491f50b33.tar.bz2 qemu-ba76a84d2d420ccab7383bb60c61b96491f50b33.zip |
gdbstub-xml: avoid a warning from sparse
Include a header to get the declaration for xml_builtin. This
avoids a warning from sparse:
CC m68k-softmmu/gdbstub-xml.o
gdbstub-xml.c:244:12: warning: symbol 'xml_builtin' was not declared. Should it be static?
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'scripts/feature_to_c.sh')
-rw-r--r-- | scripts/feature_to_c.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/feature_to_c.sh b/scripts/feature_to_c.sh index 0994d9546e..b62da8a0bd 100644 --- a/scripts/feature_to_c.sh +++ b/scripts/feature_to_c.sh @@ -36,6 +36,9 @@ for input; do arrayname=xml_feature_`echo $input | sed 's,.*/,,; s/[-.]/_/g'` ${AWK:-awk} 'BEGIN { n = 0 + printf "#include \"config.h\"\n" + printf "#include \"qemu-common.h\"\n" + printf "#include \"gdbstub.h\"\n" print "static const char '$arrayname'[] = {" for (i = 0; i < 255; i++) _ord_[sprintf("%c", i)] = i |