[gnome-control-center/gnome-3-30] thunderbolt: Fix compile-time warning
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/gnome-3-30] thunderbolt: Fix compile-time warning
- Date: Wed, 21 Nov 2018 14:12:29 +0000 (UTC)
commit e7c90e1bff7b3535c8e96195b66dfce512b4262e
Author: Bastien Nocera <hadess hadess net>
Date: Wed Nov 21 13:16:47 2018 +0000
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 cad5f982c9bd9c8e4c31398c59faa595edc9d8ee)
meson.build | 5 +++++
1 file changed, 5 insertions(+)
---
diff --git a/meson.build b/meson.build
index a826a492a..d6f11783c 100644
--- a/meson.build
+++ b/meson.build
@@ -181,6 +181,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 = [
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]