Skip to content

Commit a09b1f3

Browse files
committed
Tweaked some Meson settings
1 parent 5021127 commit a09b1f3

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

meson.build

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
project('httpdirfs', 'c',
22
version: '1.2.6',
3-
license: ' GPL-3.0-or-later'
3+
license: 'GPL-3.0-or-later',
4+
default_options: [
5+
'debug=false',
6+
'buildtype=release',
7+
'werror=true',
8+
'warning_level=3'
9+
]
410
)
511

612
srcs = [
@@ -17,14 +23,9 @@ srcs = [
1723
]
1824

1925
c_args = [
20-
'-g',
21-
'-O2',
22-
'-Wall',
23-
'-Wextra',
24-
'-Wshadow',
25-
'-rdynamic',
2626
'-pthread',
2727
'-D_GNU_SOURCE',
28+
'-D_FILE_OFFSET_BITS=64',
2829
'-DVERSION="' + meson.project_version() + '"'
2930
]
3031

@@ -40,7 +41,7 @@ httpdirfs = executable('httpdirfs',
4041
dependencies : [gumbo_dep, libcurl_dep, fuse_dep, uuid_dep, expat_dep, openssl_dep],
4142
c_args: c_args,
4243
install: true,
43-
install_dir: get_option('bindir')
44+
install_dir: get_option('bindir'),
4445
)
4546

4647
if (host_machine.system() == 'linux')
@@ -62,4 +63,4 @@ run_target('format',
6263
command : 'scripts/format.sh')
6364

6465
run_target('doxygen',
65-
command : 'scripts/doxygen.sh')
66+
command : 'scripts/doxygen.sh')

src/cache.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -910,7 +910,7 @@ void Cache_close(Cache *cf)
910910
lprintf(cache_lock_debug,
911911
"thread %x: unlocking cf_lock;\n", pthread_self());
912912
PTHREAD_MUTEX_UNLOCK(&cf_lock);
913-
return Cache_free(cf);
913+
Cache_free(cf);
914914
}
915915

916916
/**

0 commit comments

Comments
 (0)