MCPcopy Create free account
hub / github.com/F-Stack/f-stack / checkIgnoreWarning

Function checkIgnoreWarning

app/redis-6.2.6/src/server.c:5384–5397  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5382/* =================================== Main! ================================ */
5383
5384int checkIgnoreWarning(const char *warning) {
5385 int argc, j;
5386 sds *argv = sdssplitargs(server.ignore_warnings, &argc);
5387 if (argv == NULL)
5388 return 0;
5389
5390 for (j = 0; j < argc; j++) {
5391 char *flag = argv[j];
5392 if (!strcasecmp(flag, warning))
5393 break;
5394 }
5395 sdsfreesplitres(argv,argc);
5396 return j < argc;
5397}
5398
5399#ifdef __linux__
5400int linuxOvercommitMemoryValue(void) {

Callers 1

mainFunction · 0.85

Calls 3

sdssplitargsFunction · 0.85
strcasecmpFunction · 0.85
sdsfreesplitresFunction · 0.85

Tested by

no test coverage detected