[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-bugs] #32500 [Core Tor/Tor]: consider clang -std=gnu99 in Travis for better C99 portability



#32500: consider clang -std=gnu99 in Travis for better C99 portability
------------------------------+---------------------------------
     Reporter:  catalyst      |      Owner:  (none)
         Type:  defect        |     Status:  new
     Priority:  Medium        |  Milestone:  Tor: unspecified
    Component:  Core Tor/Tor  |    Version:
     Severity:  Normal        |   Keywords:  portability, tor-ci
Actual Points:                |  Parent ID:
       Points:                |   Reviewer:
      Sponsor:                |
------------------------------+---------------------------------
 In #32495, we discovered that `-Wtypedef-redefinition` doesn't seem to
 work on clang unless `-std=gnu99` or similar is used. (typedef
 redefinitions are apparently allowed in C11) It does seem to work on
 FreeBSD's cc for some reason, but we don't use FreeBSD in Travis.

 We should consider using something like `-std=gnu99` in our Travis
 configuration for clang, so we can catch additional instances of this sort
 of portability problem earlier.

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/32500>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs