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/psModules/src/imcombine/pmSubtractionVisual.c

    r40454 r40553  
    574574
    575575    Noverlay = 0;
    576     char boxID[10];
     576    char boxID[PS_SMALLWORD];
    577577    for (int i = 0; i < stamps->num; i++) {
    578578
     
    594594        overlay[Noverlay].dy = 40.0;
    595595        overlay[Noverlay].angle = 0.0;
    596         sprintf(boxID, "%d", i);
     596        ps_snprintf_nowarn(boxID, PS_SMALLWORD, "%d", i);
    597597        overlay[Noverlay].text = boxID;
    598598        Noverlay ++;
Note: See TracChangeset for help on using the changeset viewer.