From 2e6063ce7972ebdc3db17d79b555028ba5d01c34 Mon Sep 17 00:00:00 2001 From: jp9000 Date: Wed, 25 Jun 2014 02:03:00 -0700 Subject: [PATCH] Fix 'potentially uninitialized variable' warnings --- obs/window-basic-main.cpp | 1 + obs/window-basic-settings.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/obs/window-basic-main.cpp b/obs/window-basic-main.cpp index 729f63909..6adf1d284 100644 --- a/obs/window-basic-main.cpp +++ b/obs/window-basic-main.cpp @@ -1478,6 +1478,7 @@ void OBSBasic::StreamingStop(int code) errorMessage = Str("Output.ConnectFail.InvalidStream"); break; + default: case OBS_OUTPUT_ERROR: errorMessage = Str("Output.ConnectFail.Error"); break; diff --git a/obs/window-basic-settings.cpp b/obs/window-basic-settings.cpp index 276d98181..2a67a539b 100644 --- a/obs/window-basic-settings.cpp +++ b/obs/window-basic-settings.cpp @@ -563,7 +563,7 @@ void OBSBasicSettings::SaveVideoSettings() QString baseResolution = ui->baseResolution->currentText(); QString outputResolution = ui->outputResolution->currentText(); int fpsType = ui->fpsType->currentIndex(); - uint32_t cx, cy; + uint32_t cx = 0, cy = 0; /* ------------------- */