Talk: fixes warning: local variable is initialized but not referenced due to only using the variable in question for asserts.
BUG=N/A R=mallinath@webrtc.org Review URL: https://webrtc-codereview.appspot.com/11249004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@5848 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
@ -984,7 +984,7 @@ std::wstring RegKey::GetParentKeyInfo(std::wstring* key_name) {
|
|||||||
uint32 RegKey::GetValueCount() {
|
uint32 RegKey::GetValueCount() {
|
||||||
DWORD num_values = 0;
|
DWORD num_values = 0;
|
||||||
|
|
||||||
LONG res = ::RegQueryInfoKey(
|
if (ERROR_SUCCESS != ::RegQueryInfoKey(
|
||||||
h_key_, // key handle
|
h_key_, // key handle
|
||||||
NULL, // buffer for class name
|
NULL, // buffer for class name
|
||||||
NULL, // size of class string
|
NULL, // size of class string
|
||||||
@ -996,9 +996,9 @@ uint32 RegKey::GetValueCount() {
|
|||||||
NULL, // longest value name
|
NULL, // longest value name
|
||||||
NULL, // longest value data
|
NULL, // longest value data
|
||||||
NULL, // security descriptor
|
NULL, // security descriptor
|
||||||
NULL); // last write time
|
NULL)) { // last write time
|
||||||
|
ASSERT(false);
|
||||||
ASSERT(res == ERROR_SUCCESS);
|
}
|
||||||
return num_values;
|
return num_values;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1028,7 +1028,7 @@ uint32 RegKey::GetSubkeyCount() {
|
|||||||
// number of values for key
|
// number of values for key
|
||||||
DWORD num_subkeys = 0;
|
DWORD num_subkeys = 0;
|
||||||
|
|
||||||
LONG res = ::RegQueryInfoKey(
|
if (ERROR_SUCCESS != ::RegQueryInfoKey(
|
||||||
h_key_, // key handle
|
h_key_, // key handle
|
||||||
NULL, // buffer for class name
|
NULL, // buffer for class name
|
||||||
NULL, // size of class string
|
NULL, // size of class string
|
||||||
@ -1040,9 +1040,9 @@ uint32 RegKey::GetSubkeyCount() {
|
|||||||
NULL, // longest value name
|
NULL, // longest value name
|
||||||
NULL, // longest value data
|
NULL, // longest value data
|
||||||
NULL, // security descriptor
|
NULL, // security descriptor
|
||||||
NULL); // last write time
|
NULL)) { // last write time
|
||||||
|
ASSERT(false);
|
||||||
ASSERT(res == ERROR_SUCCESS);
|
}
|
||||||
return num_subkeys;
|
return num_subkeys;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user