Skip to content

Commit 1f688d6

Browse files
authored
Merge pull request #12490 from NixOS/warnings-2025-02-17
Fix a few warnings
2 parents c003f3a + c5fcb1b commit 1f688d6

File tree

6 files changed

+6
-10
lines changed

6 files changed

+6
-10
lines changed

src/libexpr/eval-settings.hh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
///@file
33

44
#include "config.hh"
5-
#include "ref.hh"
65
#include "source-path.hh"
76

87
namespace nix {

src/libfetchers/meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ cxx = meson.get_compiler('cpp')
1414

1515
subdir('nix-meson-build-support/deps-lists')
1616

17-
configdata = configuration_data()
17+
configuration_data()
1818

1919
deps_private_maybe_subproject = [
2020
]

src/libutil/file-descriptor.cc

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
#include "file-system.hh"
2-
#include "signals.hh"
3-
#include "finally.hh"
41
#include "serialise.hh"
52
#include "util.hh"
63

src/nix/meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ foreach linkname : nix_symlinks
223223
# The 'runtime' tag is what executables default to, which we want to emulate here.
224224
install_tag : 'runtime'
225225
)
226-
t = custom_target(
226+
custom_target(
227227
command: ['ln', '-sf', fs.name(this_exe), '@OUTPUT@'],
228228
output: linkname + executable_suffix,
229229
# native doesn't allow dangling symlinks, but the target executable often doesn't exist at this time

src/perl/meson.build

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,10 @@ libdir = join_paths(prefix, get_option('libdir'))
5757

5858
# Required Programs
5959
#-------------------------------------------------
60-
xz = find_program('xz')
60+
find_program('xz')
6161
xsubpp = find_program('xsubpp')
6262
perl = find_program('perl')
63-
curl = find_program('curl')
63+
find_program('curl')
6464
yath = find_program('yath', required : false)
6565

6666
# Required Libraries
@@ -157,7 +157,7 @@ subdir(lib_dir)
157157
if get_option('tests').enabled()
158158
yath_rc_conf = configuration_data()
159159
yath_rc_conf.set('lib_dir', lib_dir)
160-
yath_rc = configure_file(
160+
configure_file(
161161
output : '.yath.rc',
162162
input : '.yath.rc.in',
163163
configuration : yath_rc_conf,

tests/functional/meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ test_confdata = {
3737
# Done as a subdir() so Meson places it under `common` in the build directory as well.
3838
subdir('common')
3939

40-
config_nix_in = configure_file(
40+
configure_file(
4141
input : 'config.nix.in',
4242
output : 'config.nix',
4343
configuration : test_confdata,

0 commit comments

Comments
 (0)