Ignore:
Timestamp:
Sep 30, 2017, 2:52:35 PM (8 years ago)
Author:
bird
Message:

misc gcc warning fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kash/parser.c

    r2631 r3065  
    914914        char line[EOFMARKLEN + 1];
    915915        struct nodelist *bqlist;
    916         int quotef;
     916        int quotef = 0;
    917917        int *dblquotep = NULL;
    918918        size_t maxnest = 32;
     
    923923        int oldstyle;
    924924        char const *prevsyntax; /* syntax before arithmetic */
     925
     926        psh->startlinno = psh->plinno;
     927        dblquote = 0;
     928        varnest = 0;
     929        if (syntax == DQSYNTAX) {
     930                SETDBLQUOTE();
     931        }
     932        quotef = 0;
     933        bqlist = NULL;
     934        arinest = 0;
     935        parenlevel = 0;
     936
    925937#if __GNUC__
    926         /* Avoid longjmp clobbering */
     938        /* Try avoid longjmp clobbering */
    927939        (void) &maxnest;
    928940        (void) &dblquotep;
     
    937949        (void) &syntax;
    938950#endif
    939 
    940         psh->startlinno = psh->plinno;
    941         dblquote = 0;
    942         varnest = 0;
    943         if (syntax == DQSYNTAX) {
    944                 SETDBLQUOTE();
    945         }
    946         quotef = 0;
    947         bqlist = NULL;
    948         arinest = 0;
    949         parenlevel = 0;
    950951
    951952        STARTSTACKSTR(psh, out);
Note: See TracChangeset for help on using the changeset viewer.