We are currently forcing clang builds (and only clang builds) to use -Werror=unused-result (https://github.com/mongodb/mongo/blob/master/SConstruct#L2388-L2389) which ignores the --disable-warnings-as-errors. I always generate my compile_commands.json with that flag so that my editor shows errors and warnings differently.
-Wunused-result shouldn't ignore --disable-warnings-as-errors
- Assignee:
 - 
    
            
            
    
Ryan Egesdahl (Inactive)
 - Reporter:
 - 
    
            
            
    
Mathias Stearn
 - Votes:
 - 
                    
0 Vote for this issue - Watchers:
 - 
                    
                    
                    
3 Start watching this issue 
- Created:
 - Updated:
 - Resolved: