浏览代码

Remove undocumented variable in getopt().

wip/core-clipp
Sam Hocevar 4 年前
父节点
当前提交
4bad4a9cdf
共有 1 个文件被更改,包括 0 次插入4 次删除
  1. +0
    -4
      include/lol/base/getopt.h

+ 0
- 4
include/lol/base/getopt.h 查看文件

@@ -56,8 +56,6 @@ public:

int parse()
{
int longindex = 0; // FIXME: what is this?

/* XXX: this getopt_long implementation should not be trusted for other
* applications without any serious peer reviewing. It “just works” with
* zzuf and a few libcaca programs but may fail miserably in other
@@ -123,12 +121,10 @@ public:
case '=':
if (!m_opts[i].has_arg)
goto bad_opt;
longindex = i;
++this->index;
this->arg = flag + 2 + l + 1;
return m_opts[i].val;
case '\0':
longindex = i;
++this->index;
if (m_opts[i].has_arg)
{


正在加载...
取消
保存