Commit e7c90e1b authored by Bastien Nocera's avatar Bastien Nocera Committed by Georges Basile Stavracas Neto

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

(cherry picked from commit cad5f982)
parent e72f228b
Pipeline #41952 passed with stages
in 4 minutes and 24 seconds
......@@ -181,6 +181,11 @@ endif
config_h.set('HAVE_WAYLAND', enable_wayland,
description: 'Define to 1 if Wayland is enabled')
# thunderbolt
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 = [
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment