Menu

#46 session.c:2949: bad compare ?

v1.0 (example)
wont-fix
nobody
None
5
2023-10-17
2020-07-10
dcb
No

session.c:2949:26: warning: bitwise comparison always evaluates to false [-Wtautological-compare]

Source code is

if ((flagbyte1 & 0xC0) == 3)

Some duplicates:

session.c:2970:31: warning: bitwise comparison always evaluates to false [-Wtautological-compare]
session.c:2974:31: warning: bitwise comparison always evaluates to false [-Wtautological-compare]
session.c:3254:26: warning: bitwise comparison always evaluates to false [-Wtautological-compare]
session.c:3299:31: warning: bitwise comparison always evaluates to false [-Wtautological-compare]
session.c:3304:31: warning: bitwise comparison always evaluates to false [-Wtautological-compare]

Related

Bugs: #46

Discussion

  • Kevin Adler

    Kevin Adler - 2023-10-17
    • status: open --> wont-fix
     
    • dcb

      dcb - 2023-10-17

      Hello there,

      The bug remains unfixed after three years, so I won't bother resubmitting it.

      Regards

      David Binderman


      From: bugs@tn5250.p.re.sourceforge.net bugs@tn5250.p.re.sourceforge.net on behalf of Kevin Adler kadler@users.sourceforge.net
      Sent: 17 October 2023 13:14
      To: [tn5250:bugs] 46@bugs.tn5250.p.re.sourceforge.net
      Subject: [tn5250:bugs] #46 session.c:2949: bad compare ?

      • status: open --> wont-fix
      • Comment:

      Hi, if you are still experiencing this problem, please open an issue at https://github.com/tn5250/tn5250/issues


      [bugs:#46]https://sourceforge.net/p/tn5250/bugs/46/ session.c:2949: bad compare ?

      Status: wont-fix
      Group: v1.0 (example)
      Created: Fri Jul 10, 2020 04:14 PM UTC by dcb
      Last Updated: Fri Jul 10, 2020 04:14 PM UTC
      Owner: nobody

      session.c:2949:26: warning: bitwise comparison always evaluates to false [-Wtautological-compare]

      Source code is

      if ((flagbyte1 & 0xC0) == 3)

      Some duplicates:

      session.c:2970:31: warning: bitwise comparison always evaluates to false [-Wtautological-compare]
      session.c:2974:31: warning: bitwise comparison always evaluates to false [-Wtautological-compare]
      session.c:3254:26: warning: bitwise comparison always evaluates to false [-Wtautological-compare]
      session.c:3299:31: warning: bitwise comparison always evaluates to false [-Wtautological-compare]
      session.c:3304:31: warning: bitwise comparison always evaluates to false [-Wtautological-compare]


      Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/tn5250/bugs/46/

      To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

       

      Related

      Bugs: #46

  • Kevin Adler

    Kevin Adler - 2023-10-17

    Hi, if you are still experiencing this problem, please open an issue at https://github.com/tn5250/tn5250/issues

     
  • dcb

    dcb - 2023-10-17

    The bug remains unfixed after three years, so it seems pretty pointless
    to resubmit it.

    A fix looks unlikely.

     

Log in to post a comment.