Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • Trac Trac
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Issues 246
    • Issues 246
    • List
    • Boards
    • Service Desk
    • Milestones
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
  • Wiki
    • Wiki
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • Legacy
  • TracTrac
  • Issues
  • #27900

Closed (moved)
(moved)
Open
Created Sep 29, 2018 by yurivict271@yurivict271

Please establish which C standard tor code complies with

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.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking