From 2c686b7afe3558a43e5d048448bd4e90c3aa5ce2 Mon Sep 17 00:00:00 2001 From: Kurt Hindenburg Date: Sat, 23 Feb 2013 10:00:25 -0500 Subject: [PATCH] Minor warning fixes when running under FreeBSD --- src/ProcessInfo.cpp | 1 + src/Pty.cpp | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/ProcessInfo.cpp b/src/ProcessInfo.cpp index 78598042..7a0ecefb 100644 --- a/src/ProcessInfo.cpp +++ b/src/ProcessInfo.cpp @@ -682,6 +682,7 @@ private: } virtual bool readEnvironment(int aPid) { + Q_UNUSED(aPid); // Not supported in FreeBSD? return false; } diff --git a/src/Pty.cpp b/src/Pty.cpp index 9b5c6d54..973a5880 100644 --- a/src/Pty.cpp +++ b/src/Pty.cpp @@ -148,6 +148,8 @@ void Pty::setUtf8Mode(bool enable) if (!pty()->tcSetAttr(&ttmode)) kWarning() << "Unable to set terminal attributes."; } +#else + Q_UNUSED(enable); #endif }