diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2021-06-19 15:48:15 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-06-19 15:48:15 -0400 |
| commit | f0d4336c1c818ec1f3e3709fab5badc161c835a3 (patch) | |
| tree | e22f367cb7163672139c508d05819a555a619fbb /lib/compiler.h | |
| parent | 22f158c6ff1852336c1e8c148d87ba86329bfc5e (diff) | |
| parent | 4133f94ba5f06ee960c9d510e3efa5fab8f10af1 (diff) | |
Merge pull request #8881 from FRRouting/mergify/bp/stable/7.4/pr-8876stable/7.4
lib: remove pure attribute from functions that modify memory (backport #8876)
Diffstat (limited to 'lib/compiler.h')
| -rw-r--r-- | lib/compiler.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/lib/compiler.h b/lib/compiler.h index 217a60d888..3326e8bd33 100644 --- a/lib/compiler.h +++ b/lib/compiler.h @@ -108,15 +108,6 @@ extern "C" { #define assume(x) #endif -/* pure = function does not modify memory & return value is the same if - * memory hasn't changed (=> allows compiler to optimize) - * - * Mostly autodetected by the compiler if function body is available (i.e. - * static inline functions in headers). Since that implies it should only be - * used in headers for non-inline functions, the "extern" is included here. - */ -#define ext_pure extern __attribute__((pure)) - /* for helper functions defined inside macros */ #define macro_inline static inline __attribute__((unused)) #define macro_pure static inline __attribute__((unused, pure)) |
