Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • mesa mesa
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3,054
    • Issues 3,054
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 1,001
    • Merge requests 1,001
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • MesaMesa
  • mesamesa
  • Merge requests
  • !8404

frontends/omx: fix build warning

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Leo Liu requested to merge leoliu/mesa:fix_warning into master Jan 10, 2021
  • Overview 1
  • Commits 1
  • Pipelines 5
  • Changes 1

From code path, it's easy to see that the variable is only used with condition, and the variable gets initialized with the same condition before getting used, but we can initialize it when defined to avoid the warning.

Signed-off-by: Leo Liu <leo.liu@amd.com>

Edited Jan 10, 2021 by Leo Liu
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: fix_warning