mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-26 12:12:10 +01:00
build: Add missing return statements from compiled tests
This could have caused spurious test failures when running with -Werror, due to the missing return statement in int main(). Signed-off-by: Philip Withnall <withnall@endlessm.com> Reviewed-by: nobody
This commit is contained in:
parent
1a6fc60fe9
commit
53d3455e75
@ -1510,6 +1510,7 @@ else
|
||||
if cc.links(pthread_prefix + '''
|
||||
int main() {
|
||||
pthread_setname_np("example");
|
||||
return 0;
|
||||
}''',
|
||||
name : 'pthread_setname_np(const char*)',
|
||||
dependencies : thread_dep)
|
||||
@ -1518,6 +1519,7 @@ else
|
||||
elif cc.links(pthread_prefix + '''
|
||||
int main() {
|
||||
pthread_setname_np(pthread_self(), "example");
|
||||
return 0;
|
||||
}''',
|
||||
name : 'pthread_setname_np(pthread_t, const char*)',
|
||||
dependencies : thread_dep)
|
||||
@ -1728,6 +1730,7 @@ if host_system != 'windows' and get_option('xattr')
|
||||
|
||||
int main (void) {
|
||||
ssize_t len = getxattr("", "", NULL, 0, 0, XATTR_NOFOLLOW);
|
||||
return len;
|
||||
}''',
|
||||
name : 'XATTR_NOFOLLOW')
|
||||
glib_conf.set('HAVE_XATTR_NOFOLLOW', 1)
|
||||
|
Loading…
x
Reference in New Issue
Block a user