You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: