]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
meson: Fix build warnings
authorTobias Stoeckmann <tobias@stoeckmann.org>
Sun, 22 Mar 2026 15:47:46 +0000 (16:47 +0100)
committerTobias Stoeckmann <tobias@stoeckmann.org>
Sun, 22 Mar 2026 15:47:46 +0000 (16:47 +0100)
Remove unused variables, which fixes analyzer warnings.

Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
meson.build
pam_lastlog2/meson.build

index ed6cfdc7f13a30cb0532ed1c26dfad79125f354f..661733b02da971eafb7da0408c82799b4e8f3849 100644 (file)
@@ -350,7 +350,6 @@ else
   if get_option('nls').enabled()
     error('nls is not supported with meson before 0.59.0')
   endif
-  lib_intl = dependency('', required : false)
 endif
 
 lib_user = dependency(
index 99a6eced3a8039f32b51b7ecebc1c2e141bebf2e..89515fc20e11c7cdc4ef059df288446fde92f3bc 100644 (file)
@@ -5,7 +5,6 @@ build_pam_lastlog2 = not get_option('build-pam-lastlog2') \
 summary('pam_lastlog2', build_pam_lastlog2 ? 'enabled' : 'disabled', section : 'components')
 
 cc = meson.get_compiler('c')
-pkg = import('pkgconfig')
 lib_pam_lastlog2_sources = '''
   src/pam_lastlog2.c
 '''.split()
@@ -23,7 +22,7 @@ if build_pam_lastlog2
 
   libpam = cc.find_library('pam')
 
-  pam_lastlog2 = shared_module(
+  shared_module(
     'pam_lastlog2',
     lib_pam_lastlog2_sources,
     name_prefix : '',