Bugzilla – Bug 141064
jfsutils-1.1.10-2: bad function definition
Last modified: 2006-01-11 15:40:45 UTC
I just tried to compile package jfsutils-1.1.10-2 with the Intel C compiler It said dirindex.c(203): warning #1011: missing return statement at end of non-void function "dirty_index_page" dirindex.c(200): warning #117: non-void function "dirty_index_page" should return a value The source code is static int dirty_index_page(struct dir_table_slot *table) { /* Should only be called on most recent page */ if (table != mru_di_page->table) { /* Really shoudn't happen. */ printf("You messed up, Shaggy. write_index_page mismatch.\n"); return; } mru_di_page->flag |= DIPAGE_DIRTY; } So the return statement is missing an expression, and there is a missing return statement at the end of the routine.
Yeah, that function should be void. Fixed.