diff options
author | Ulrich Drepper <drepper@redhat.com> | 2007-10-04 18:40:28 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2007-10-04 18:40:28 +0000 |
commit | 3fc3d7bd6bd8485404a936f7354e781dc2be6a5a (patch) | |
tree | dd3067abcc90bb21b7e04567c6c4bbc7f79cfefd /libdwfl/linux-kernel-modules.c | |
parent | 59ea7f33f781e6e3f8c9d81d457e5d99eee8f1ce (diff) | |
download | elfutils-3fc3d7bd6bd8485404a936f7354e781dc2be6a5a.tar.gz |
Build fixes for uninitialized variables.
Add some branch prediction.
Diffstat (limited to 'libdwfl/linux-kernel-modules.c')
-rw-r--r-- | libdwfl/linux-kernel-modules.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libdwfl/linux-kernel-modules.c b/libdwfl/linux-kernel-modules.c index 6164ae74..8954b2fe 100644 --- a/libdwfl/linux-kernel-modules.c +++ b/libdwfl/linux-kernel-modules.c @@ -501,6 +501,9 @@ dwfl_linux_kernel_report_kernel (Dwfl *dwfl) /* Try to figure out the bounds of the kernel image without looking for any vmlinux file. */ Dwarf_Addr notes; + /* The compiler cannot deduce that if intuit_kernel_bounds returns + zero NOTES will be initialized. Fake the initialization. */ + asm ("" : "=m" (notes)); int result = intuit_kernel_bounds (&start, &end, ¬es); if (result == 0) { |