Page MenuHomePhabricator

DB: fix warnings
ClosedPublic

Authored by bowonryu on Nov 26 2018, 11:33 PM.

Details

Summary

this will cause a format string warning

Test Plan

build project

Diff Detail

Branch
master
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 8227
Build 7511: arc lint + arc unit
bowonryu requested review of this revision.Nov 26 2018, 11:33 PM
bowonryu created this revision.
akanad accepted this revision.Nov 26 2018, 11:45 PM
This revision is now accepted and ready to land.Nov 26 2018, 11:45 PM

How do you have warnings on it? I don't have anything!

This is my log

/home/bowon/stabilization/src/ea_gen/src/bin/db.c: In function ‘db_ml_gen’:
/home/bowon/stabilization/src/ea_gen/src/bin/db.c:2501:4: warning: format not a string literal and no format arguments [-Wformat-security]
    if (!file_out) printf(buf);
    ^
/home/bowon/stabilization/src/ea_gen/src/bin/db.c:2505:9: warning: format not a string literal and no format arguments [-Wformat-security]
         fprintf(fp, buf);
JackDanielZ closed this revision.Nov 27 2018, 9:57 AM