Bug 2134

Summary: invalid prototype for get_last_login_time()
Product: Portable OpenSSH Reporter: Arthur Mesh <arthurmesh>
Component: Build systemAssignee: Assigned to nobody <unassigned-bugs>
Status: CLOSED FIXED    
Severity: enhancement CC: djm, dtucker
Priority: P5    
Version: 6.2p1   
Hardware: Other   
OS: FreeBSD   
Bug Depends on:    
Bug Blocks: 2076    
Attachments:
Description Flags
proposed fix dtucker: ok+

Description Arthur Mesh 2013-07-30 04:59:19 AEST
Created attachment 2321 [details]
proposed fix

simple fix -- found when building OpenSSH with stricter warning sets.
Comment 1 Damien Miller 2013-08-01 14:34:59 AEST
What options did you use to catch this? Neither gcc nor clang/llvm-3.3 noticed this for me.

In any case, applied - nice catch.
Comment 2 Arthur Mesh 2013-08-02 08:24:03 AEST
It was caught using GCC 4.2.1 (with some unknown to me patches), using the
following set of -Ws:
-Wno-pointer-sign
-Wno-error=address
-W
-Wall
-Wcast-align
-Wchar-subscripts
-Wcomment
-Werror
-Wextra
-Wformat
-Wimplicit
-Winline
-Wmissing-declarations
-Wmissing-prototypes
-Wparentheses
-Wpointer-arith
-Wreturn-type
-Wshadow
-Wstrict-aliasing
-Wstrict-prototypes
-Wswitch
-Wtrigraphs
-Wuninitialized
-Wno-unused-parameter
-Wno-unused

I am not sure which, if any of these, are causing the warning.
Comment 3 Damien Miller 2016-08-02 10:42:55 AEST
Close all resolved bugs after 7.3p1 release