[PATCH] D99825: [cmake] Enable -Werror=return-type for clang
    Dávid Bolvanský via Phabricator via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Tue Apr  6 10:52:08 PDT 2021
    
    
  
xbolva00 added a comment.
If any code contains control paths that do not return a value, compiler optimizations can exploit this fact. I think it is dangerous to ignore this type of warning, hard error should be safe.
Repository:
  rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D99825/new/
https://reviews.llvm.org/D99825
    
    
More information about the llvm-commits
mailing list