[vte] stream: test: Silence warning
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte] stream: test: Silence warning
- Date: Fri, 28 Sep 2018 10:26:58 +0000 (UTC)
commit b4107da616c069bdff5c275fa37145a36cb9a373
Author: Christian Persch <chpe src gnome org>
Date: Fri Sep 28 12:17:40 2018 +0200
stream: test: Silence warning
clang generates weird warnings for this from -Wstring-plus-int;
silence that warning.
src/vtestream-file.h | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/src/vtestream-file.h b/src/vtestream-file.h
index c8dc89b9..a21a67c9 100644
--- a/src/vtestream-file.h
+++ b/src/vtestream-file.h
@@ -1248,6 +1248,10 @@ G_END_DECLS
#ifdef VTESTREAM_MAIN
+#ifdef __clang__
+#pragma clang diagnostic ignored "-Wstring-plus-int"
+#endif
+
/* Some helpers. Macros rather than functions to report useful line numbers on failure. */
/* Check for the file's exact contents */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]