mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-26 20:22:11 +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 + '''
|
if cc.links(pthread_prefix + '''
|
||||||
int main() {
|
int main() {
|
||||||
pthread_setname_np("example");
|
pthread_setname_np("example");
|
||||||
|
return 0;
|
||||||
}''',
|
}''',
|
||||||
name : 'pthread_setname_np(const char*)',
|
name : 'pthread_setname_np(const char*)',
|
||||||
dependencies : thread_dep)
|
dependencies : thread_dep)
|
||||||
@ -1518,6 +1519,7 @@ else
|
|||||||
elif cc.links(pthread_prefix + '''
|
elif cc.links(pthread_prefix + '''
|
||||||
int main() {
|
int main() {
|
||||||
pthread_setname_np(pthread_self(), "example");
|
pthread_setname_np(pthread_self(), "example");
|
||||||
|
return 0;
|
||||||
}''',
|
}''',
|
||||||
name : 'pthread_setname_np(pthread_t, const char*)',
|
name : 'pthread_setname_np(pthread_t, const char*)',
|
||||||
dependencies : thread_dep)
|
dependencies : thread_dep)
|
||||||
@ -1728,6 +1730,7 @@ if host_system != 'windows' and get_option('xattr')
|
|||||||
|
|
||||||
int main (void) {
|
int main (void) {
|
||||||
ssize_t len = getxattr("", "", NULL, 0, 0, XATTR_NOFOLLOW);
|
ssize_t len = getxattr("", "", NULL, 0, 0, XATTR_NOFOLLOW);
|
||||||
|
return len;
|
||||||
}''',
|
}''',
|
||||||
name : 'XATTR_NOFOLLOW')
|
name : 'XATTR_NOFOLLOW')
|
||||||
glib_conf.set('HAVE_XATTR_NOFOLLOW', 1)
|
glib_conf.set('HAVE_XATTR_NOFOLLOW', 1)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user