IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 20, 2018, 9:10:43 PM (8 years ago)
Author:
eugene
Message:

use ps_snprintf_nowarn function to avoid compiler optimization warnings triggered by overly-script gcc checking since 8.1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psastro/src/psastroModelArguments.c

    r21409 r40553  
    6565    // each additional word is a file; create names INPUT.%d for them
    6666    for (int i = 0; i < argc - 1; i++) {
    67         char name[16];
    68         snprintf (name, 16, "INPUT.%d", i);
     67        char name[PS_SMALLWORD];
     68        ps_snprintf_nowarn (name, PS_SMALLWORD, "INPUT.%d", i);
    6969        psArray *array = psArrayAlloc(1);
    7070        array->data[0] = psStringCopy (argv[i+1]);
Note: See TracChangeset for help on using the changeset viewer.