From ef1677ef67678be9b90f26507843dfbb1d4cabbf Mon Sep 17 00:00:00 2001 From: renguoqing1 Date: Sat, 24 Sep 2022 23:02:33 +0800 Subject: [PATCH] change to assert --- src/gflags.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/gflags.cc b/src/gflags.cc index 6e45e89..d1b3534 100644 --- a/src/gflags.cc +++ b/src/gflags.cc @@ -1991,9 +1991,7 @@ void AllowCommandLineReparsing() { void ReparseCommandLineNonHelpFlags() { // Check reparse status - if (!allow_command_line_reparsing) { - return; - } + assert(allow_command_line_reparsing); // We make a copy of argc and argv to pass in const vector& argvs = GetArgvs(); int tmp_argc = static_cast(argvs.size());