summaryrefslogtreecommitdiffstats
path: root/src/3rdparty
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2020-05-04 16:48:25 -0700
committerThiago Macieira <thiago.macieira@intel.com>2020-06-12 21:52:40 -0700
commitbd793d3c46ec08ff84dd67db467def8578922697 (patch)
tree1473e08e82f7e86c033ff03db7688dc588d21453 /src/3rdparty
parentde29af76639268f354c74eb6db4e8c85ae180a0d (diff)
Suppress warning of unused function on macOS
This function is only used on FreeBSD and Linux. forkfd.c:243:12: warning: unused function 'convertForkfdWaitFlagsToWaitFlags' [-Wunused-function] Pick-To: 5.15 Change-Id: I99ab0f318b1c43b89888fffd160bf81f01960f2f Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/3rdparty')
-rw-r--r--src/3rdparty/forkfd/forkfd.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/3rdparty/forkfd/forkfd.c b/src/3rdparty/forkfd/forkfd.c
index 50784deaa5..d7bafe086e 100644
--- a/src/3rdparty/forkfd/forkfd.c
+++ b/src/3rdparty/forkfd/forkfd.c
@@ -240,6 +240,9 @@ static void convertStatusToForkfdInfo(int status, struct forkfd_info *info)
}
}
+#ifdef __GNUC__
+__attribute__((unused))
+#endif
static int convertForkfdWaitFlagsToWaitFlags(int ffdoptions)
{
int woptions = WEXITED;