Skip to content

Commit 67bbae3

Browse files
r-barnesfacebook-github-bot
authored andcommitted
Increase compiler warnings in folly/PACKAGE
Summary: LLVM-15 has many useful compiler warnings that are not yet enabled globally. In order to enable them globally we are first enabling them on a per-directory basis. This diff enables additional warning flags for this directory. If the builds succeed, the diff should be safe to land. - If you approve of this diff, please use the "Accept & Ship" button :-) (1 file modified.) Reviewed By: dmm-fb Differential Revision: D52931439 fbshipit-source-id: 3019692f9fef96202784353aca05f998fcb45eb4
1 parent 9abcdf6 commit 67bbae3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

third-party/folly/src/folly/fibers/test/StackOverflow.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
#include <folly/fibers/FiberManagerMap.h>
1818
#include <folly/init/Init.h>
1919

20+
FOLLY_PUSH_WARNING
21+
FOLLY_CLANG_DISABLE_WARNING("-Winfinite-recursion")
22+
2023
void f(int* p) {
2124
LOG(INFO) << "f()";
2225
// Make sure recursion is not optimized out
@@ -31,6 +34,8 @@ void f(int* p) {
3134
f(a);
3235
}
3336

37+
FOLLY_POP_WARNING
38+
3439
int main(int argc, char* argv[]) {
3540
folly::Init init(&argc, &argv);
3641

0 commit comments

Comments
 (0)