IRCv3: Make sure we can compile against old versions of Gsasl

Review Request #2229 — Created Feb. 8, 2023 and submitted

Information

pidgin/pidgin
default

Reviewers

IRCv3: Make sure we can compile against old versions of Gsasl

Compiled against fedora 36 and 37. Also compiled on debian unstable and verified that SCRAM-SHA-256 was still working.

Summary ID
IRCv3: Make sure we can compile against old versions of Gsasl
5b35c943c921b1dbed174e08c8a9979ff34ca73f
Description From Last Updated

This produces a warning for me: ../libpurple/protocols/ircv3/purpleircv3sasl.c: In function 'purple_ircv3_sasl_callback': ../libpurple/protocols/ircv3/purpleircv3sasl.c:114:17: warning: case value '25' not in enumerated type 'Gsasl_property' …

ivanhoeivanhoe
ivanhoe
  1. 
      
  2. Show all issues

    This produces a warning for me:

    ../libpurple/protocols/ircv3/purpleircv3sasl.c: In function 'purple_ircv3_sasl_callback':
    ../libpurple/protocols/ircv3/purpleircv3sasl.c:114:17: warning: case value '25' not in enumerated type 'Gsasl_property' [-Wswitch]
      114 |                 case GSASL_CB_TLS_EXPORTER:
          |                 ^~~~
    

    `

    1. Hmm, I wonder if we should ignore it or what. It looks like the way to disable it is a pragma for each compiler and that seems like a lot of trouble...

      See https://stackoverflow.com/questions/52955811/how-to-disable-enumeration-value-not-explicitly-handled-in-switch-just-for-one

  3. 
      
ivanhoe
  1. Ship It!
  2. 
      
grim
Review request changed
Status:
Completed