summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-07-11 05:27:00 +0200
committerStanislaw Halik <sthalik@misaki.pl>2018-07-11 05:27:00 +0200
commitdb47f9fc711f9b0abeb8461042c40c70d5a71021 (patch)
tree35b0918dd4f535520e06b68c02b03189558d657a
parentd07eb65c4a8452daa1714bbc78922f9c84b17b2a (diff)
gui/init: sprinkle some `static'
-rw-r--r--gui/init.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/gui/init.cpp b/gui/init.cpp
index 1a4666b5..367822ae 100644
--- a/gui/init.cpp
+++ b/gui/init.cpp
@@ -42,7 +42,7 @@ using namespace options;
# include <cfloat>
#define OTR_HAS_DENORM_CONTROL
-void set_fp_mask()
+static void set_fp_mask()
{
//_MM_SET_FLUSH_ZERO_MODE(_MM_FLUSH_ZERO_ON);
_MM_SET_DENORMALS_ZERO_MODE(_MM_DENORMALS_ZERO_ON);
@@ -51,7 +51,7 @@ void set_fp_mask()
}
#endif
-void set_qt_style()
+static void set_qt_style()
{
#if defined _WIN32
if (QSysInfo::WindowsVersion == QSysInfo::WV_XP)
@@ -77,7 +77,7 @@ void set_qt_style()
#ifdef _WIN32
-void qdebug_to_console(QtMsgType, const QMessageLogContext& ctx, const QString &msg)
+static void qdebug_to_console(QtMsgType, const QMessageLogContext& ctx, const QString &msg)
{
const unsigned short* const str_ = msg.utf16();
auto str = reinterpret_cast<const wchar_t* const>(str_);
@@ -93,7 +93,7 @@ void qdebug_to_console(QtMsgType, const QMessageLogContext& ctx, const QString &
std::fflush(stderr);
}
-void add_win32_path()
+static void add_win32_path()
{
// see https://software.intel.com/en-us/articles/limitation-to-the-length-of-the-system-path-variable
static char env_path[4096] { '\0', };
@@ -145,7 +145,7 @@ void add_win32_path()
#include <windows.h>
-void attach_parent_console()
+static void attach_parent_console()
{
std::fflush(stdin);
std::fflush(stderr);