commit | f4160311dde8e4b76107ab72f9dd45f4077fb096 | [log] [tgz] |
---|---|---|
author | George Burgess IV <gbiv@google.com> | Mon Aug 14 18:29:21 2017 -0700 |
committer | George Burgess IV <gbiv@google.com> | Mon Aug 14 18:55:40 2017 -0700 |
tree | bdd0f4aea3a9dcd0a5de3e201ca1c52be8cd90f8 | |
parent | 677e8d24c8ca75b730de3895cd6c76784a96f457 [diff] |
Remove useless open modes Previously, the machinery that detected these was only enabled in optimized builds. We're expanding it to work in code built with -O0, as well. Thus, we now get compile-time warnings about these calls (which get turned into errors by -Werror). Bug: 12231437 Test: Builds without warnings about useless mode bits in calls to open() Change-Id: Icb1bc5f0a7941bb90d8581d6c3bde7cc076f3e01