summaryrefslogtreecommitdiff
path: root/adb/fdevent.cpp
diff options
context:
space:
mode:
authorDan Albert <danalbert@google.com>2015-07-09 19:48:54 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2015-07-09 19:48:55 +0000
commita35affb5fc9e7cd19a2669a82cda19789314a783 (patch)
tree29b1d8281e4355d70bf32b4efffa5e5a9350da2b /adb/fdevent.cpp
parenta6241a0298de5e773ef113626ca4686f9c038868 (diff)
parent459df8f3a14d4c614f0211049800cf7cad6d30ad (diff)
Merge "Turn on -Wformat-nonliteral."
Diffstat (limited to 'adb/fdevent.cpp')
-rw-r--r--adb/fdevent.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/adb/fdevent.cpp b/adb/fdevent.cpp
index 0c43c5e9c7..8997897aa4 100644
--- a/adb/fdevent.cpp
+++ b/adb/fdevent.cpp
@@ -30,6 +30,8 @@
#include <sys/ioctl.h>
#include <unistd.h>
+#include "base/macros.h"
+
#include "adb_io.h"
#include "adb_trace.h"
@@ -44,6 +46,7 @@
// of the shell's pseudo-tty master. I.e. force close it.
int SHELL_EXIT_NOTIFY_FD = -1;
+static void fatal(const char *fn, const char *fmt, ...) ATTRIBUTE_FORMAT(2, 3);
static void fatal(const char *fn, const char *fmt, ...)
{
va_list ap;