blob: cdf09faec8edc96c2885681e733ec4e4e1d2cb2a [file] [log] [blame]
Brad Bishopd7bf8c12018-02-25 22:55:05 -05001From 35e9f80518d666db5f9c62e8072ffbc307b4af4f Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Sat, 26 Aug 2017 08:30:01 -0700
4Subject: [PATCH] Fix clang warnings
5
6../src/native-state-drm.cpp:334:20: error: cannot pass object of non-trivial type 'std::__cxx11::basic_string<char>' through variadic function; call will abort at runtime [-Wnon-pod-varargs]
7 dev_path);
8 ^
91 error generated.
10
11Signed-off-by: Khem Raj <raj.khem@gmail.com>
12---
13 src/native-state-drm.cpp | 2 +-
14 1 file changed, 1 insertion(+), 1 deletion(-)
15
16diff --git a/src/native-state-drm.cpp b/src/native-state-drm.cpp
17index dc2b323..62566ee 100644
18--- a/src/native-state-drm.cpp
19+++ b/src/native-state-drm.cpp
20@@ -331,7 +331,7 @@ static int open_using_udev_scan()
21 if (!valid_fd(fd)) {
22 // %m is GLIBC specific... Maybe use strerror here...
23 Log::error("Tried to use '%s' but failed.\nReason : %m",
24- dev_path);
25+ dev_path.c_str());
26 }
27 else
28 Log::debug("Success!\n");
29--
302.14.1
31