BINDIR= /usr/sbin
LINKS= ${BINDIR}/named ${BINDIR}/lwresd
+.if defined(__MINIX)
+CWARNFLAGS.gcc+= -Wno-maybe-uninitialized
+.endif # defined(__MINIX)
+
.include "${.CURDIR}/../Makefile.inc"
DIST=${IDIST}/bin/named
FILE *fp = NULL;
char word[256];
lwres_result_t rval, ret;
+#if !defined(NDEBUG) && defined(__minix)
lwres_conf_t *confdata;
+#endif /* !defined(NDEBUG) && defined(__minix) */
int stopchar;
REQUIRE(ctx != NULL);
+#if !defined(NDEBUG) && defined(__minix)
confdata = &ctx->confdata;
+#endif /* !defined(NDEBUG) && defined(__minix) */
REQUIRE(filename != NULL);
REQUIRE(strlen(filename) > 0U);
+#if !defined(NDEBUG) && defined(__minix)
REQUIRE(confdata != NULL);
+#endif /* !defined(NDEBUG) && defined(__minix) */
errno = 0;
if ((fp = fopen(filename, "r")) == NULL)
.include "${.CURDIR}/../Makefile.inc"
+.if defined(__MINIX)
+#LSC: -Wno-maybe-uninitialized while compiling with -DNDEBUG -Os
+CWARNFLAGS.gcc+= -Wno-maybe-uninitialized
+.endif # defined(__MINIX)
+
DIST= ${IDIST}/lib/dns
.include "${DIST}/api"
.include "${DIST}/mapapi"
.include <bsd.own.mk>
+.if defined(__MINIX)
+#LSC: -Wno-maybe-uninitialized while compiling with -DNDEBUG -Os
+CWARNFLAGS.gcc+= -Wno-maybe-uninitialized
+.endif # defined(__MINIX)
+
.include "${.CURDIR}/../Makefile.inc"
DIST= ${IDIST}/lib/isc
DHCPSRCDIR= common
.include <bsd.lib.mk>
+
+.if defined(__MINIX)
+.if !empty(DBG:M-Og) || !empty(CFLAGS:M-Og) || \
+ !empty(DBG:M-g) || !empty(CFLAGS:M-g)
+#LSC: -Wno-maybe-uninitialized while compiling with -DNDEBUG -Og
+CWARNFLAGS.gcc+= -Wno-maybe-uninitialized
+.endif
+.endif # defined(__MINIX)
.include <bsd.own.mk>
+.if defined(__MINIX)
+CWARNFLAGS.gcc+= -Wno-maybe-uninitialized
+.endif # defined(__MINIX)
+
SRCS+= auth.c hmac_md5.c
USE_INET?= yes
CWARNFLAGS.clang+= -Wno-uninitialized -Wno-format-security
+.if defined(__MINIX)
+.if !empty(DBG:M-Og) || !empty(CFLAGS:M-Og) || \
+ !empty(DBG:M-g) || !empty(CFLAGS:M-g)
+#LSC: -Wno-maybe-uninitialized while compiling with -DNDEBUG -Og
+CWARNFLAGS.gcc+= -Wno-maybe-uninitialized
+.endif
+.endif # defined(__MINIX)
+
CPPFLAGS+=-I${DIST}/include -I${.CURDIR} -I. -DGTAGS
#DBG=-g
#CPPFLAGS+=-DLOGDEBUG -DTRACE
.include <bsd.own.mk>
+.if defined(__MINIX)
+#LSC: -Wno-unused-but-set-variable while compiling with -DNDEBUG -O2
+#LSC: -Wno-maybe-uninitialized while compiling with -DNDEBUG -O3
+CWARNFLAGS.gcc+= -Wno-unused-but-set-variable -Wno-maybe-uninitialized
+.endif # defined(__MINIX)
+
USE_FORT?= yes # network client
BINDIR=/usr/sbin
.include <bsd.lib.mk>
+.if defined(__MINIX)
+.if !empty(DBG:M-Og) || !empty(CFLAGS:M-Og) || \
+ !empty(DBG:M-g) || !empty(CFLAGS:M-g)
+#LSC: -Wno-maybe-uninitialized while compiling with -DNDEBUG -Og
+CWARNFLAGS.gcc+= -Wno-maybe-uninitialized
+.endif
+.endif # defined(__MINIX)
+
all: sqlite3.pc
dependall: all
INCS= bzlib.h
INCSDIR= /usr/include
+.if defined(__MINIX)
+.if !empty(DBG:M-Og) || !empty(CFLAGS:M-Og) || \
+ !empty(DBG:M-g) || !empty(CFLAGS:M-g)
+#LSC: -Wno-maybe-uninitialized while compiling with -DNDEBUG -Og
+CWARNFLAGS.gcc+= -Wno-maybe-uninitialized
+.endif
+.endif # defined(__MINIX)
+
# XXX huffman.c gets mis-compiled with 2.95.3
.if ${MACHINE_ARCH} == "vax"
COPTS+= -O0
.include <bsd.own.mk>
+.if defined(__MINIX)
+.if !empty(DBG:M-Og) || !empty(CFLAGS:M-Og) || \
+ !empty(DBG:M-g) || !empty(CFLAGS:M-g)
+#LSC: -Wno-maybe-uninitialized while compiling with -DNDEBUG -Og
+CWARNFLAGS.gcc+= -Wno-maybe-uninitialized
+.endif
+.endif # defined(__MINIX)
+
.if ${MKCRYPTO} != "no"
LDADD+= -lssl -lcrypto
WARNS?= 5
+.if defined(__MINIX)
+.if !empty(DBG:M-Og) || !empty(CFLAGS:M-Og) || \
+ !empty(DBG:M-g) || !empty(CFLAGS:M-g)
+#LSC: -Wno-maybe-uninitialized while compiling with -DNDEBUG -Og
+CWARNFLAGS.gcc+= -Wno-maybe-uninitialized
+.endif
+.endif # defined(__MINIX)
+
.include <minix.service.mk>
void
addr_normalize(ip_addr_t * dst, const ip_addr_t * src, unsigned int prefix)
{
- unsigned int addr_len, byte, bit;
+#if !defined(NDEBUG)
+ unsigned int addr_len;
+#endif /* !defined(NDEBUG) */
+ unsigned int byte, bit;
const uint8_t *srcaddr;
uint8_t type, *dstaddr;
case IPADDR_TYPE_V4:
srcaddr = (const uint8_t *)&ip_2_ip4(src)->addr;
dstaddr = (uint8_t *)&ip_2_ip4(dst)->addr;
+#if !defined(NDEBUG)
addr_len = sizeof(ip_2_ip4(src)->addr);
+#endif /* !defined(NDEBUG) */
break;
srcaddr = (const uint8_t *)&ip_2_ip6(src)->addr;
dstaddr = (uint8_t *)&ip_2_ip6(dst)->addr;
+#if !defined(NDEBUG)
addr_len = sizeof(ip_2_ip6(src)->addr);
+#endif /* !defined(NDEBUG) */
break;
{
const ip6_addr_t *ip6addr;
ip_addr_t ipaddr;
- struct netif *netif;
+ struct netif *netif = NULL /*gcc*/;
struct ifdev *ifdev;
- const uint8_t *lladdr;
+ const uint8_t *lladdr = NULL /*gcc*/;
socklen_t addr_len;
ip6addr = nd6_get_neighbor_cache_entry(num, &netif, &lladdr,
{
struct rttree_node *node, *parent, *link;
struct rttree_entry *other_entry;
- unsigned int bit, side, side2;
+ unsigned int bit = 0 /*gcc*/, side, side2;
int match;
assert(mask != NULL || prefix == tree->rtt_bits);
struct rmib_newp * newp)
{
uint8_t secret[TCPISN_SECRET_HEX_LENGTH], byte, *p;
- unsigned int i;
+ unsigned int i = 0 /*gcc*/;
int r;
/* First copy out the old (current) ISN secret. */
DPADD+= ${LIBSOCKEVENT} ${LIBSOCKDRIVER} ${LIBSYS} ${LIBTIMERS}
LDADD+= -lsockevent -lsockdriver -lsys -ltimers
+.if !empty(DBG:M-Os) || !empty(CFLAGS:M-Os) || \
+ !empty(DBG:M-Og) || !empty(CFLAGS:M-Og) || \
+ !empty(DBG:M-g) || !empty(CFLAGS:M-g)
+#LSC: -Wno-maybe-uninitialized while compiling with -DNDEBUG -Os
+#LSC: -Wno-maybe-uninitialized while compiling with -DNDEBUG -Og
+CWARNFLAGS.gcc+= -Wno-maybe-uninitialized
+.endif
+
WARNS?= 5
.include <minix.service.mk>
struct udssock *uds = (struct udssock *)sock;
size_t seglen, datalen, reslen = 0 /*gcc*/, credpos = 0 /*gcc*/;
unsigned int segflags;
- int r, partial, may_block;
+ int r, partial, may_block = 0 /*gcc*/;
dprintf(("UDS: recv(%d,%zu,%zu,%u,%u,0x%x)\n",
uds_get_id(uds), len, (off != NULL) ? *off : 0, ctl_len,
# Makefile for the Management Information Base (MIB) server
+.include <bsd.own.mk>
+
+.if !empty(DBG:M-Og) || !empty(CFLAGS:M-Og) || \
+ !empty(DBG:M-g) || !empty(CFLAGS:M-g)
+#LSC: -Wno-maybe-uninitialized while compiling with -DNDEBUG -Og
+CWARNFLAGS.gcc+= -Wno-maybe-uninitialized
+.endif
+
PROG= mib
SRCS= main.c tree.c remote.c kern.c vm.c hw.c proc.c minix.c
CPPFLAGS+= -DUSE_COVERAGE
.endif
+.if defined(__MINIX)
+#LSC: -Wno-maybe-uninitialized while compiling with -DNDEBUG -O3
+CWARNFLAGS.gcc+= -Wno-maybe-uninitialized
+.endif # defined(__MINIX)
+
CFLAGS+= -Wall -Wextra -Wno-sign-compare -Werror
DPADD+= ${LIBSYS} ${LIBTIMERS} ${LIBEXEC}
LDADD+= -lsys -ltimers -lexec -lmthread
* The parent and child parameters tell who forked off whom. The file
* system uses the same slot numbers as the kernel. Only PM makes this call.
*/
- struct fproc *cp, *pp;
+ struct fproc *cp;
+#if !defined(NDEBUG)
+ struct fproc *pp;
+#endif /* !defined(NDEBUG) */
int i, parentno, childno;
mutex_t c_fp_lock;
/* Increase the counters in the 'filp' table. */
cp = &fproc[childno];
+#if !defined(NDEBUG)
pp = &fproc[parentno];
+#endif /* !defined(NDEBUG) */
for (i = 0; i < OPEN_MAX; i++)
if (cp->fp_filp[i] != NULL) cp->fp_filp[i]->filp_count++;
cp->fp_pid = cpid;
cp->fp_endpoint = cproc;
+#if !defined(NDEBUG)
/* A forking process cannot possibly be suspended on anything. */
assert(pp->fp_blocked_on == FP_BLOCKED_ON_NONE);
+#endif /* !defined(NDEBUG) */
/* A child is not a process leader, not being revived, etc. */
cp->fp_flags = FP_NOFLAGS;
RUMPPRG=ifconfig
MAN= ifconfig.8
+.if defined(__MINIX)
+CWARNFLAGS.gcc+= -Wno-unused-but-set-variable
+.endif # defined(__MINIX)
#DBG+=-g
SRCS= af_atalk.c af_link.c carp.c
.if (${USE_INET6} != "no")
SRCS= cmds.c cmdtab.c complete.c domacro.c fetch.c ftp.c main.c \
progressbar.c ruserpass.c util.c
+.if defined(__MINIX)
+.if !empty(DBG:M-Og) || !empty(CFLAGS:M-Og) || \
+ !empty(DBG:M-g) || !empty(CFLAGS:M-g)
+#LSC: -Wno-maybe-uninitialized while compiling with -DNDEBUG -Og
+CWARNFLAGS.gcc+= -Wno-maybe-uninitialized -Wno-clobbered
+.endif
+.endif # defined(__MINIX)
+
# Uncomment the following to provide defaults for gate-ftp operation
#
#CPPFLAGS+=-DGATE_SERVER=\"ftp-gw.host\" # -DGATE_PORT=21
# if you want the paste & spaste macros.
.include <bsd.own.mk>
+.if defined(__MINIX)
+.if !empty(DBG:M-Og) || !empty(CFLAGS:M-Og) || \
+ !empty(DBG:M-g) || !empty(CFLAGS:M-g)
+#LSC: -Wno-maybe-uninitialized while compiling with -DNDEBUG -Og
+CWARNFLAGS.gcc+= -Wno-maybe-uninitialized
+.endif
+.endif # defined(__MINIX)
+
PROG= m4
CPPFLAGS+= -DEXTENDED -I${.CURDIR}/lib
SRCS= parser.y tokenizer.l eval.c expr.c look.c main.c misc.c gnum4.c trace.c