1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

add warning for gmp, use gmc to detect memory leak.

This commit is contained in:
winlin 2015-06-09 10:52:32 +08:00
parent f347099fd1
commit 7996b3b789
2 changed files with 7 additions and 2 deletions

View file

@ -254,6 +254,11 @@ int main(int argc, char** argv)
"it is not possible to run both the heap-checker and heap profiler at the same time");
#endif
// never use gmp to check memory leak.
#ifdef SRS_AUTO_GPERF_MP
#warning "gmp is not used for memory leak, please use gmc instead."
#endif
// never use srs log(srs_trace, srs_error, etc) before config parse the option,
// which will load the log config and apply it.
if ((ret = _srs_config->parse_options(argc, argv)) != ERROR_SUCCESS) {