Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ubuntu 20.04 下编译报错 #24

Open
libiao92 opened this issue Dec 3, 2021 · 0 comments
Open

ubuntu 20.04 下编译报错 #24

libiao92 opened this issue Dec 3, 2021 · 0 comments

Comments

@libiao92
Copy link

libiao92 commented Dec 3, 2021

1、执行make
2、报错如下
polaris/plugin/load_balancer/locality_aware/locality_aware.cpp: In member function ‘virtual polaris::ReturnCode polaris::LocalityAwareLoadBalancer::ChooseInstance(polaris::ServiceInstances*, const polaris::Criteria&, polaris::Instance*&)’: polaris/logger.h:39:78: error: format not a string literal and no format arguments [-Werror=format-security] 39 | #define POLARIS_LOG(LOG_LEVEL, ...) GetLogger()->Log(LOG_LEVEL, ##__VA_ARGS__) | ^ polaris/plugin/load_balancer/locality_aware/locality_aware.cpp:192:7: note: in expansion of macro ‘POLARIS_LOG’ 192 | POLARIS_LOG(LOG_INFO, la_info.c_str()); | ^~~~~~~~~~~ cc1plus: all warnings being treated as errors make: *** [Makefile:231:build64/objs/plugin/load_balancer/locality_aware/locality_aware.o] 错误 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant