mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 10:37:35 +03:00
Fix gcc init pragma warnings
Use constructor attribute on non-Solaris platforms. The #pragma init/fini ->__attribute__((constructor/destructor)) conversions, these should go upstream. Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
This commit is contained in:
@@ -249,7 +249,13 @@ uu_release_child(void)
|
||||
uu_release();
|
||||
}
|
||||
|
||||
#ifdef __GNUC__
|
||||
static void
|
||||
uu_init(void) __attribute__((constructor));
|
||||
#else
|
||||
#pragma init(uu_init)
|
||||
#endif
|
||||
|
||||
static void
|
||||
uu_init(void)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user