Eliminate a wuffs_base__return_empty_struct call

This commit is contained in:
Nigel Tao committed 2019-02-16 14:23:24 +11:00
1 parent 53760ce0fd
commit 02563641da
4 files changed
+16 -13

No files matched your search

@@ -14,8 +14,10 @@
// See the License for the specific language governing permissions and
// limitations under the License.
static inline void //
wuffs_base__ignore_status(wuffs_base__status z) {}
static inline wuffs_base__empty_struct //
wuffs_base__ignore_status(wuffs_base__status z) {
return ((wuffs_base__empty_struct){0});
}
// WUFFS_BASE__MAGIC is a magic number to check that initializers are called.
// It's not foolproof, given C doesn't automatically zero memory before use,