Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(37)

Issue 947313003: Explicitly initializing a local variable. (Closed)

Created:
5 years, 10 months ago by Łukasz Anforowicz
Modified:
5 years, 10 months ago
Reviewers:
Sergey Ulanov, Sriram
CC:
chromium-reviews, chromoting-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Explicitly initializing a local variable. In the previous commit, I made a wrong assumption that policy::Schema::Normalize will always set the |changed| parameter. This has been fortunately caught by the Valgrind/FYI bot. BUG=427513 Committed: https://crrev.com/1ffc24b7564d0363c65c3e9b6818c2360324da45 Cr-Commit-Position: refs/heads/master@{#317676}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -1 line) Patch
M remoting/host/policy_watcher.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 12 (2 generated)
Łukasz Anforowicz
Sergey, could you please take a look?
5 years, 10 months ago (2015-02-23 22:23:06 UTC) #2
Sergey Ulanov
lgtm
5 years, 10 months ago (2015-02-23 22:26:35 UTC) #3
Sriram
Can we actually have compiler warning for uninitialized locals converted to build error? That way ...
5 years, 10 months ago (2015-02-23 22:32:19 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/947313003/1
5 years, 10 months ago (2015-02-23 22:39:41 UTC) #6
Sergey Ulanov
On Mon, Feb 23, 2015 at 2:32 PM, Sriram Srinivasan <sriramsr@chromium.org> wrote: > Can we ...
5 years, 10 months ago (2015-02-23 22:45:24 UTC) #7
chromium-reviews
No, ASan didn't catch the problem. On Mon, Feb 23, 2015 at 2:45 PM, Sergey ...
5 years, 10 months ago (2015-02-23 23:02:59 UTC) #8
commit-bot: I haz the power
Committed patchset #1 (id:1)
5 years, 10 months ago (2015-02-23 23:28:13 UTC) #9
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/1ffc24b7564d0363c65c3e9b6818c2360324da45 Cr-Commit-Position: refs/heads/master@{#317676}
5 years, 10 months ago (2015-02-23 23:29:10 UTC) #10
Łukasz Anforowicz
Actually I was wrong - the issue was eventually caught by an MSan bot: http://build.chromium.org/p/chromium.memory.fyi/builders/Linux%20MSan%20Tests/builds/4000/steps/remoting_unittests/logs/stdio
5 years, 10 months ago (2015-02-23 23:44:34 UTC) #11
Łukasz Anforowicz
5 years, 10 months ago (2015-02-24 18:22:40 UTC) #12
Message was sent while issue was closed.
A quick status update / follow-up to earlier questions:
1. We already run with -Wall
(https://code.google.com/p/chromium/codesearch#chromium/src/build/common.gypi&...)
2. I verified that -Wall catches simple case of unininitalized variables (based
on the one at
http://stackoverflow.com/questions/22518944/clang-not-reporting-uninitalized-...)
3. I verified that -Wall -Wextra doesn't catch my specific case.
4. I added more data to an already existing feature request for warning in this
specific case: http://llvm.org/bugs/show_bug.cgi?id=17558

Powered by Google App Engine
This is Rietveld 408576698