aboutsummaryrefslogtreecommitdiff
path: root/tests/fdstream
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2023-06-12 08:36:22 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2023-06-12 08:36:22 +0200
commitd58bb311ba5b981132f7b666a8ec0ecfeec6fd75 (patch)
treee266030a82bd7b7a5e48b2a90e716bef92f5856e /tests/fdstream
parentbb5b2ed9b340192e75ca473a8e3e302b112f0ba1 (diff)
Fix unused static variable warning in Clang 16
Diffstat (limited to 'tests/fdstream')
-rw-r--r--tests/fdstream/driver.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/fdstream/driver.cxx b/tests/fdstream/driver.cxx
index c07c7c0..ec0c54e 100644
--- a/tests/fdstream/driver.cxx
+++ b/tests/fdstream/driver.cxx
@@ -42,7 +42,9 @@ static const string text2 ("12"); // Keep shorter than text1.
// Windows text mode write-translated form of text1.
//
+#ifdef _WIN32
static const string text3 ("ABCDEF\r\nXYZ");
+#endif
static string
from_stream (ifdstream& is)