summaryrefslogtreecommitdiff
path: root/gdb/regformats/regdat.sh
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/regformats/regdat.sh')
-rwxr-xr-xgdb/regformats/regdat.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/regformats/regdat.sh b/gdb/regformats/regdat.sh
index 1839a881213..a40f2336484 100755
--- a/gdb/regformats/regdat.sh
+++ b/gdb/regformats/regdat.sh
@@ -127,6 +127,10 @@ do
echo "const struct target_desc *tdesc_${name};"
echo ""
+
+ # This is necessary for -Wmissing-declarations.
+ echo "void init_registers_${name} (void);"
+
echo "void"
echo "init_registers_${name} (void)"
echo "{"