Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 140657 Details for
Bug 205269
app-editors/lfhex crashes on search when compiled w/ -DNDEBUG
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch fixing the NDEBUG problem
ndebug.patch (text/plain), 778 bytes, created by
Guenther Brunthaler
on 2008-01-11 02:59:48 UTC
(
hide
)
Description:
Patch fixing the NDEBUG problem
Filename:
MIME Type:
Creator:
Guenther Brunthaler
Created:
2008-01-11 02:59:48 UTC
Size:
778 bytes
patch
obsolete
>Patches lfhex to compile fine with -DNDEBUG (which is typically used to >compile release versions without debugging information). > >The original version made an essential function call within an assert() >statement - but defining NDEBUG makes any assert statements into no-ops. > >Patch written 2008 by Guenther Brunthaler <gb_about_gnu@gmx.net> >Index: src/reader.cpp >=================================================================== >--- src.orig/reader.cpp >+++ src/reader.cpp >@@ -278,7 +278,11 @@ uchar Reader::operator[] (off_t offset) > "attempt to access past end of file"); > > off_t page_idx = offset/_pageSize; >+ #ifdef NDEBUG >+ (void)loadPage( page_idx ); >+ #else > assert( loadPage( page_idx ) ); >+ #endif > return _data[page_idx][ offset%_pageSize ]; > } >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 205269
: 140657