diff options
author | rl1987 <rl1987@sdf.lonestar.org> | 2020-03-14 16:43:08 +0200 |
---|---|---|
committer | teor <teor@torproject.org> | 2020-03-17 21:08:10 +1000 |
commit | 752122b2e9647b82fbb7f6eac120d57b913761f9 (patch) | |
tree | d66d13a03bdc198227ec2c3bac8a1b4037965e83 /src/feature/dircache | |
parent | b0cb3f54583d1aa5b5adb25636c079d5cfccbf19 (diff) | |
download | tor-752122b2e9647b82fbb7f6eac120d57b913761f9.tar.gz tor-752122b2e9647b82fbb7f6eac120d57b913761f9.zip |
Try fixing Windows build to work with ALL_BUGS_ARE_FATAL
Diffstat (limited to 'src/feature/dircache')
-rw-r--r-- | src/feature/dircache/conscache.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/feature/dircache/conscache.c b/src/feature/dircache/conscache.c index ceba410a5f..d9aaccddc1 100644 --- a/src/feature/dircache/conscache.c +++ b/src/feature/dircache/conscache.c @@ -132,6 +132,15 @@ consensus_cache_may_overallocate(consensus_cache_t *cache) #endif } +// HACK: GCC on Appveyor hates that we may assert before returning. Work around +// the error. +#ifdef _WIN32 +#ifndef COCCI +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wsuggest-attribute=noreturn" +#endif +#endif + /** * Tell the sandbox (if any) configured by <b>cfg</b> to allow the * operations that <b>cache</b> will need. @@ -156,6 +165,12 @@ consensus_cache_register_with_sandbox(consensus_cache_t *cache, return storage_dir_register_with_sandbox(cache->dir, cfg); } +#ifdef _WIN32 +#ifndef COCCI +#pragma GCC diagnostic pop +#endif +#endif + /** * Helper: clear all entries from <b>cache</b> (but do not delete * any that aren't marked for removal |