diff options
author | Erik Kundiman <erik@megapahit.org> | 2023-08-01 09:33:43 +0800 |
---|---|---|
committer | Erik Kundiman <erik@megapahit.org> | 2023-08-01 09:33:43 +0800 |
commit | fee49238c386e89e2530da86e31ff582337025a7 (patch) | |
tree | 858dbee8151e7dd2fea4d7c468e9eb064c780de1 /indra | |
parent | 7aa0299d38dd8fdef9d7e722e94db84c7b2fb5f4 (diff) |
Initialise vars so they wouldn't be errors on GCC
Diffstat (limited to 'indra')
-rw-r--r-- | indra/llcommon/llprocessor.cpp | 2 | ||||
-rw-r--r-- | indra/llwindow/llwindow.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/indra/llcommon/llprocessor.cpp b/indra/llcommon/llprocessor.cpp index b3c05f5960..cfa85ac2fd 100644 --- a/indra/llcommon/llprocessor.cpp +++ b/indra/llcommon/llprocessor.cpp @@ -961,7 +961,7 @@ private: LLPI_SET_INFO_INT(eModel, "model"); - S32 family; + S32 family = 0; if (!cpuinfo["cpu family"].empty() && LLStringUtil::convertToS32(cpuinfo["cpu family"], family)) { diff --git a/indra/llwindow/llwindow.cpp b/indra/llwindow/llwindow.cpp index c5725677b4..207c5cac9c 100644 --- a/indra/llwindow/llwindow.cpp +++ b/indra/llwindow/llwindow.cpp @@ -409,7 +409,7 @@ LLWindow* LLWindowManager::createWindow( BOOL ignore_pixel_depth, U32 fsaa_samples) { - LLWindow* new_window; + LLWindow* new_window = nullptr; if (use_gl) { |