Add -Wformat explicitly wherever -Wformat-security appears
[barrelfish] / usr / openssh / src / openbsd-compat / Hakefile
1 --------------------------------------------------------------------------
2 -- Copyright (c) 2012, ETH Zurich
3 -- All rights reserved.
4 --
5 -- This file is distributed under the terms in the attached LICENSE file.
6 -- If you do not find this file, copies can be found by writing to:
7 -- ETH Zurich D-INFK, CAB F.78, Universitaetstr. 6, CH-8092 Zurich,
8 -- Attn: Systems Group.
9 --
10 -- Hakefile for usr/openssh/src/openbsdcompat
11 --
12 --------------------------------------------------------------------------
13
14 [
15     build library { target = "openbsdcompat",
16                     addCFlags = [ "-Wpointer-arith",
17                                   "-Wuninitialized",
18                                   "-Wsign-compare",
19                                   "-Wformat",
20                                   "-Wformat-security",
21                                   "-Wno-pointer-sign",
22                                   "-Wno-unused-result",
23                                   "-fno-strict-aliasing",
24                                   "-D_FORTIFY_SOURCE=2",
25                                   "-DHAVE_CONFIG_H" ],
26                     omitCFlags = [ "-Wredundant-decls",
27                                    "-Wmissing-prototypes",
28                                    "-Wmissing-declarations",
29                                    "-Wold-style-definition",
30                                    "-Werror" ],
31                     cFiles = [ -- OPENBSD
32                                "base64.c",
33                                "basename.c",
34                                "bindresvport.c",
35                                "daemon.c",
36                                "dirname.c",
37                                "fmt_scaled.c",
38                                "getcwd.c",
39                                "getgrouplist.c",
40                                "getopt.c",
41                                "getrrsetbyname.c",
42                                "glob.c",
43                                "inet_aton.c",
44                                "inet_ntoa.c",
45                                "inet_ntop.c",
46                                "mktemp.c",
47                                "pwcache.c",
48                                "readpassphrase.c",
49                                "realpath.c",
50                                "rresvport.c",
51                                "setenv.c",
52                                "setproctitle.c",
53                                "sha2.c",
54                                "sigact.c",
55                                "strlcat.c",
56                                "strlcpy.c",
57                                "strmode.c",
58                                "strnlen.c",
59                                "strptime.c",
60                                "strsep.c",
61                                "strtonum.c",
62                                "strtoll.c",
63                                "strtoul.c",
64                                "timingsafe_bcmp.c",
65                                "vis.c",
66                                -- COMPAT
67                                "bsd-arc4random.c",
68                                "bsd-asprintf.c",
69                                "bsd-closefrom.c",
70                                "bsd-cray.c",
71                                "bsd-cygwin_util.c",
72                                "bsd-getpeereid.c",
73                                "getrrsetbyname-ldns.c",
74                                "bsd-misc.c",
75                                "bsd-nextstep.c",
76                                "bsd-openpty.c",
77                                "bsd-poll.c",
78                                "bsd-snprintf.c",
79                                "bsd-statvfs.c",
80                                "bsd-waitpid.c",
81                                "fake-rfc2553.c",
82                                "openssl-compat.c",
83                                "xmmap.c",
84                                "xcrypt.c",
85                                -- PORTS
86                                "port-aix.c",
87                                "port-irix.c",
88                                "port-linux.c",
89                                "port-solaris.c",
90                                "port-tun.c",
91                                "port-uw.c"
92                                ],
93                     addIncludes = [ "../",    -- for includes.h
94                                     "../../"  -- for config.h
95                                   ]
96     }
97 ]