[rtems-libbsd commit] Fix KVM symbol generator to remove warnings.

Chris Johns chrisj at rtems.org
Tue Jun 16 03:21:14 UTC 2015


Module:    rtems-libbsd
Branch:    master
Commit:    59a9e6a5dad609236dc0b355c512194751405690
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=59a9e6a5dad609236dc0b355c512194751405690

Author:    Chris Johns <chrisj at rtems.org>
Date:      Tue Jun 16 13:15:49 2015 +1000

Fix KVM symbol generator to remove warnings.

---

 rtemsbsd/rtems/generate_kvm_symbols | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/rtemsbsd/rtems/generate_kvm_symbols b/rtemsbsd/rtems/generate_kvm_symbols
index b26259c..6aa7dd6 100755
--- a/rtemsbsd/rtems/generate_kvm_symbols
+++ b/rtemsbsd/rtems/generate_kvm_symbols
@@ -99,10 +99,10 @@ EOF
 for sym in ${symbols}
 do
   no_underscore=`echo $sym | sed -e 's/^_//' `
-  echo "  { \"${sym}\", &${no_underscore} },"
+  echo "  { \"${sym}\", (uintptr_t) &${no_underscore} },"
 done
 
 cat <<EOF
-  { "", NULL }
+  { "", (uintptr_t) NULL }
 };
 EOF



More information about the vc mailing list