Summary:public In order to make infer more resiliant to compilation failure, make static_assert to do nothing. As a bonus, set _FORTIFY_SOURCE inside same file instead of command line Reviewed By: jvillard Differential Revision: D3133446 fb-gh-sync-id: 590f4ad fbshipit-source-id: 590f4admaster
parent
660250dcf7
commit
f1b68fe5b9
@ -0,0 +1,19 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2016 - present Facebook, Inc.
|
||||||
|
* All rights reserved.
|
||||||
|
*
|
||||||
|
* This source code is licensed under the BSD style license found in the
|
||||||
|
* LICENSE file in the root directory of this source tree. An additional grant
|
||||||
|
* of patent rights can be found in the PATENTS file in the same directory.
|
||||||
|
*/
|
||||||
|
|
||||||
|
// set _FORTIFY_SOURCE to 0 to prevent it from changing some function prototypes
|
||||||
|
// https://securityblog.redhat.com/2014/03/26/fortify-and-you/
|
||||||
|
// We always do it when building models so we should do same thing
|
||||||
|
// when building any source code
|
||||||
|
#define _FORTIFY_SOURCE 0
|
||||||
|
|
||||||
|
// Make it harder for compilation to fail. When in the future, infer
|
||||||
|
// wants to use this information, it can call some builtin instead of
|
||||||
|
// the default static_assert
|
||||||
|
#define static_assert(...)
|
Loading…
Reference in new issue