mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
Don't declare __assfail as static
It gets called by dmu_buf_init_user, which is inline but not static. So it needs global linkage itself. Reported by: GCC-6 MFC after: 17 days X-MFC-With: 329722
This commit is contained in:
parent
4f8786afe3
commit
7d3761dc72
2 changed files with 4 additions and 1 deletions
|
|
@ -32,6 +32,7 @@
|
|||
#include <string.h>
|
||||
#include <zlib.h>
|
||||
#include <libgen.h>
|
||||
#include <sys/assfail.h>
|
||||
#include <sys/spa.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/processor.h>
|
||||
|
|
|
|||
|
|
@ -48,7 +48,9 @@ void assfail3(const char *, uintmax_t, const char *, uintmax_t, const char *,
|
|||
#ifndef HAVE_ASSFAIL
|
||||
extern int aok;
|
||||
|
||||
static __inline int
|
||||
__inline int __assfail(const char *expr, const char *file, int line);
|
||||
|
||||
__inline int
|
||||
__assfail(const char *expr, const char *file, int line)
|
||||
{
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue