Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • VLC-Android VLC-Android
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 393
    • Issues 393
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 6
    • Merge requests 6
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • VideoLAN
  • VLC-AndroidVLC-Android
  • Merge requests
  • !1380

Fix warnings and listener return values

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Robert Stone requested to merge rhstone/vlc-android:fix-return-and-warnings into master May 19, 2022
  • Overview 5
  • Commits 8
  • Pipelines 4
  • Changes 111

Description

The overall goal of this MR is to address compiler warnings. Almost all of the changes should result in identical behavior. However, there are a small set of modifications which actually do correct an identified defect.

There were several listeners structured in the following manner:

if (expression) {
    statement
    true
}
false

The objective was clearly to return true when the condition was handled; however, true ended up being unused, and it returned false regardless. The code was modified to use an else block, as shown below:

if (expression) {
    statement
    true
} else false

Motivation and Context

Resolves approximately 330 warnings.

How Has This Been Tested?

Some modifications were not fully tested as the changes should not result in different runtime behavior.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)

Checklist

  • I have read the CONTRIBUTING section of the README document.
Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: fix-return-and-warnings

VideoLAN code repository instance