bug-groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #60639] src/utils/addftinfo/addftinfo.cpp:119: double increment ?


From: David Binderman
Subject: [bug #60639] src/utils/addftinfo/addftinfo.cpp:119: double increment ?
Date: Wed, 19 May 2021 14:46:00 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:88.0) Gecko/20100101 Firefox/88.0

URL:
  <https://savannah.gnu.org/bugs/?60639>

                 Summary: src/utils/addftinfo/addftinfo.cpp:119: double
increment ?
                 Project: GNU troff
            Submitted by: dcb314
            Submitted on: Wed 19 May 2021 06:45:58 PM UTC
                Category: None
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: None

    _______________________________________________________

Details:

I just tried to compile the package with clang. It said:

src/utils/addftinfo/addftinfo.cpp:119:5: warning: variable 'i' is incremented
both in the loop header and in the loop body [-Wfor-loop-analysis]

Source code is

  for (i = 1; i < argc && argv[i][0] == '-'; i++) {
...
    i++;
  }





    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?60639>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]