thunderbolt: Fix compile-time warning
The Thunderbolt panel warns about explicit_bzero() not being available but never checked for it. gnome-control-center/panels/thunderbolt/bolt-str.c: In function ‘bolt_erase_n’: gnome-control-center/panels/thunderbolt/bolt-str.c:33:4: warning: #warning no explicit bzero, using fallback [-Wcpp] #warning no explicit bzero, using fallback ^~~~~~~ Closes: #286
This commit is contained in:
parent
1b70273221
commit
cad5f982c9
1 changed files with 5 additions and 0 deletions
|
@ -177,6 +177,11 @@ endif
|
|||
config_h.set('HAVE_WAYLAND', enable_wayland,
|
||||
description: 'Define to 1 if Wayland is enabled')
|
||||
|
||||
# thunderbolt
|
||||
config_h.set10('HAVE_FN_EXPLICIT_BZERO',
|
||||
cc.has_function('explicit_bzero', prefix: '''#include <string.h>'''),
|
||||
description: 'Define if explicit_bzero is available')
|
||||
|
||||
if host_is_linux
|
||||
# network manager
|
||||
network_manager_deps = [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue