bug-gettext
[Top][All Lists]
Advanced

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

[bug #61369] libxml/xmlIO.c: 2 * duplicated if condition


From: David Binderman
Subject: [bug #61369] libxml/xmlIO.c: 2 * duplicated if condition
Date: Fri, 22 Oct 2021 12:15:22 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:91.0) Gecko/20100101 Firefox/91.0

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

                 Summary: libxml/xmlIO.c: 2 * duplicated if condition
                 Project: GNU gettext
            Submitted by: dcb314
            Submitted on: Fri 22 Oct 2021 04:15:20 PM UTC
                Category: None
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:


gcc compiler with flag -Wduplicated-cond says:

libxml/xmlIO.c: In function ‘__xmlIOErr’: 
libxml/xmlIO.c:389:24: warning: duplicated ‘if’ condition
[-Wduplicated-cond]
  389 |         else if (errno == ETIMEDOUT) code = XML_IO_ETIMEDOUT;
      |                        ^
libxml/xmlIO.c:374:24: note: previously used here
  374 |         else if (errno == ETIMEDOUT) code = XML_IO_ETIMEDOUT;
      |                        ^
libxml/xmlIO.c:398:24: warning: duplicated ‘if’ condition
[-Wduplicated-cond]
  398 |         else if (errno == EINPROGRESS) code = XML_IO_EINPROGRESS;
      |                        ^
libxml/xmlIO.c:290:24: note: previously used here
  290 |         else if (errno == EINPROGRESS) code = XML_IO_EINPROGRESS;
      |                        ^





    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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