[tor-bugs] #27900 [- Select a component]: Please establish which C standard tor code complies with
Tor Bug Tracker & Wiki
blackhole at torproject.org
Sat Sep 29 01:05:57 UTC 2018
#27900: Please establish which C standard tor code complies with
-------------------------+--------------------------------------
Reporter: yurivict271 | Owner: (none)
Type: defect | Status: new
Priority: Medium | Component: - Select a component
Version: | Severity: Normal
Keywords: | Actual Points:
Parent ID: | Points:
Reviewer: | Sponsor:
-------------------------+--------------------------------------
Currently, tor is built without the -std=xx flag, and it isn't clear what
C standard is compiler expected to use.
Please add one of -std=c90, -std=c99, -std=c11, -std=c17 to compilation
lines, add the corresponding macro to configure.ac:
> AX_CHECK_COMPILE_FLAG([-std=cNN], [CFLAGS="$CFLAGS -std=cNN"])
Reason#1: in FreeBSD we have several architectures some of which use
different compilers (gcc/clang/etc) It is good to take guessing from the
process and establish what standard the code complies with.
Reason#2: Some compilers might default to the older standard where a newer
standard is required.
My guess is that the standard is c11.
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/27900>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list