wmorgan / whistlepig

A minimalist realtime full-text search index
http://masanjin.net/whistlepig
Other
152 stars 13 forks source link

this warning makes compilation abort on my gentoo-like box with gcc 4.5.2 #1

Closed chickenkiller closed 13 years ago

wmorgan commented 13 years ago

what about prefixing with (void), e.g. (void)fwrite(&doc_id, sizeof(doc_id), 1, offsets); does that also fix it?

chickenkiller commented 13 years ago

No it does not. That was exactly my first try, but the compiler threw the same error:

mbox-indexer.c:95: error: ignoring return value of ‘fwrite’, declared with attribute warn_unused_result

wmorgan commented 13 years ago

Unfortunate. Applied. Thanks!