Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • L linux-rm
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • linux-arm
  • linux-rm
  • Repository
Switch branch/tag
  • linux-rm
  • tools
  • build
  • feature
  • test-sync-compare-and-swap.c
Find file BlameHistoryPermalink
  • George Burgess IV's avatar
    tools/build: tweak unused value workaround · a21151b9
    George Burgess IV authored Apr 20, 2020
    Clang has -Wself-assign enabled by default under -Wall, which always
    gets -Werror'ed on this file, causing sync-compare-and-swap to be
    disabled by default.
    
    The generally-accepted way to spell "this value is intentionally
    unused," is casting it to `void`.  This is accepted by both GCC and
    Clang with -Wall enabled: https://godbolt.org/z/qqZ9r3
    
    
    
    Signed-off-by: default avatarGeorge Burgess IV <gbiv@google.com>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Cc: Nick Desaulniers <ndesaulniers@google.com>
    Link: http://lkml.kernel.org/r/20200414195638.156123-1-gbiv@google.com
    
    
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    a21151b9