[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-bugs] #27900 [- Select a component]: Please establish which C standard tor code complies with
#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
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs