/*
- * Copyright 2016 Facebook, Inc.
+ * Copyright 2017 Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
// Static because otherwise clever compilers will find out that
// the ptr is not used and does not escape the scope, so they will
// just optimize away the malloc.
- static void* ptr = malloc(1);
+ static const void* ptr = malloc(1);
if (!ptr) {
// wtf, failing to allocate 1 byte
return false;