Only declare sip_copy_small under __NO_STRICT_ALIGNMENT, to afoid
a "defined but not used" warning turned into error by compiler options.
This commit is contained in:
parent
5a1d0f0133
commit
2ffc7d4a2b
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: if_sip.c,v 1.121 2007/12/15 07:05:57 dyoung Exp $ */
|
||||
/* $NetBSD: if_sip.c,v 1.122 2007/12/15 21:51:45 he Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2001, 2002 The NetBSD Foundation, Inc.
|
||||
@ -80,7 +80,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: if_sip.c,v 1.121 2007/12/15 07:05:57 dyoung Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: if_sip.c,v 1.122 2007/12/15 21:51:45 he Exp $");
|
||||
|
||||
#include "bpfilter.h"
|
||||
#include "rnd.h"
|
||||
@ -614,7 +614,9 @@ static int sipcom_detach(device_t, int);
|
||||
static bool sipcom_resume(device_t);
|
||||
|
||||
static int gsip_copy_small = 0; /* XXX make non-static! */
|
||||
#ifdef __NO_STRICT_ALIGNMENT
|
||||
static int sip_copy_small = 0; /* XXX make non-static! */
|
||||
#endif
|
||||
|
||||
CFATTACH_DECL(gsip, sizeof(struct sip_softc),
|
||||
sipcom_match, sipcom_attach, sipcom_detach, NULL);
|
||||
|
Loading…
Reference in New Issue
Block a user