Skip to content
Snippets Groups Projects
Forked from The Tor Project / Core / Tor
Source project has a limited visibility.
  • Nick Mathewson's avatar
    7f5103ec
    Require two c99 features (midblock decls, designated initializers) · 7f5103ec
    Nick Mathewson authored
    c99 lets us do neat stuff like:
    
        {
          int j, k;
          foo(&j, &k);
          int z = j + k;
        }
    
    and also
        struct point { int x; int y; };
        struct point pt = { .x=5, .y=5 };
    
    This commit makes the configure scripts check to make sure your
    compiler implements them.  It also disables our longstanding warning
    about midblock declarations.
    
    Closes ticket 13233.
    7f5103ec
    History
    Require two c99 features (midblock decls, designated initializers)
    Nick Mathewson authored
    c99 lets us do neat stuff like:
    
        {
          int j, k;
          foo(&j, &k);
          int z = j + k;
        }
    
    and also
        struct point { int x; int y; };
        struct point pt = { .x=5, .y=5 };
    
    This commit makes the configure scripts check to make sure your
    compiler implements them.  It also disables our longstanding warning
    about midblock declarations.
    
    Closes ticket 13233.