Skip to content

Commit

Permalink
fix unused variables in meson
Browse files Browse the repository at this point in the history
  • Loading branch information
UnixY2K committed Aug 14, 2024
1 parent abffec2 commit 6d9a802
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 29 deletions.
20 changes: 9 additions & 11 deletions examples/example1/meson.build
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@


example1_sources = files(
'main.cpp'
)
example1_sources = files('main.cpp')

example1_args = []

Expand All @@ -11,10 +8,11 @@ if host_machine.system() == 'windows'
example1_args += ['-D_CRT_SECURE_NO_WARNINGS']
endif


sqlitecpp_demo1_exe = executable('SQLITECPP_sample_demo1',
sqlitecpp_sample1_srcs,
dependencies: sqlitecpp_dep,
# inherit the default options from sqlitecpp
override_options: sqlitecpp_opts,
cpp_args: example1_args,)
executable(
'SQLITECPP_sample_demo1',
sources: example1_sources,
dependencies: sqlitecpp_dep,
# inherit the default options from sqlitecpp
override_options: sqlitecpp_opts,
cpp_args: example1_args,
)
19 changes: 9 additions & 10 deletions examples/example2/meson.build
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
example2_srcs = files(
'src/main.cpp'
)
example2_srcs = files('src/main.cpp')

# if running on windows define _CRT_SECURE_NO_WARNINGS
example2_args = []


sqlitecpp_demo2_exe = executable('SQLITECPP_sample_demo2',
sqlitecpp_sample2_srcs,
dependencies: sqlitecpp_dep,
# inherit the default options from sqlitecpp
override_options: sqlitecpp_opts,
cpp_args: example2_args)
executable(
'SQLITECPP_sample_demo2',
example2_srcs,
dependencies: sqlitecpp_dep,
# inherit the default options from sqlitecpp
override_options: sqlitecpp_opts,
cpp_args: example2_args,
)
8 changes: 0 additions & 8 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -86,14 +86,6 @@ sqlitecpp_test_srcs = files(
)
sqlitecpp_test_args = []

## samples

sqlitecpp_sample1_srcs = files(
'examples/example1/main.cpp',
)
sqlitecpp_sample2_srcs = files(
'examples/example2/src/main.cpp',
)

## using MSVC headers requires c++14, if not will show an error on xstddef as:
## 'auto' return without trailing return type; deduced return types are a C++14 extension
Expand Down

0 comments on commit 6d9a802

Please sign in to comment.