Project

General

Profile

Actions

Bug #12103

closed

libnisdb: control reaches end of non-void function

Added by Toomas Soome almost 2 years ago. Updated almost 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
lib - userland libraries
Start date:
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

Buils errors with gcc 8:

    db_index.cc: In member function 'int db_index::dump(char*)':
    db_index.cc:332:35: error: control reaches end of non-void function [-Werror=return-type]
      pickle_index f(file, PICKLE_WRITE);
                                       ^
    db_table.cc: In member function 'int db_table::dump(char*)':
    db_table.cc:1110:35: error: control reaches end of non-void function [-Werror=return-type]
      pickle_table f(file, PICKLE_WRITE);   /* may need to use APPEND mode */
                                       ^
    nis_db.cc: In function 'db_status db_abort_merge_dict()':
    nis_db.cc:277:1: error: control reaches end of non-void function [-Werror=return-type]
     }
     ^
    cc1plus: all warnings being treated as errors

Testing done: build/install/boot

Actions

Also available in: Atom PDF