mingw compiler problem with printf/scanf formats
Bug #1853148 reported by
Dirk Zimoch
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
EPICS Base | Status tracked in 7.0 | |||||
7.0 |
Fix Released
|
Low
|
Unassigned |
Bug Description
../db/dbJLink.c: In function ‘dbjl_integer’:
../db/dbJLink.
^
../db/dbJLink.
It seems that mingw does not like "%lld".
To post a comment you must log in.
Also here:
../yajl/yajl_gen.c yajl_gen. c:205:16: warning: unknown conversion type character ‘l’ in format [-Wformat=] yajl_gen. c:205:16: warning: too many arguments for format [-Wformat- extra-args]
../yajl/yajl_gen.c: In function ‘yajl_gen_integer’:
../yajl/
sprintf(i, "%lld", number);
^
../yajl/
and in several locations in dbUnitTest.c, lnkConst.c, lnkCalc.c line 131, lnkDebug.c line 112, testTimeStamp.cpp lines 36 and 52, lazycounter.cpp line 172.
Also "%zu" does not work in testPVData.cpp:
../../testApp/ pv/testPVData. cpp: In function ‘void testSizes()’: pv/testPVData. cpp:43: 58: warning: unknown conversion type character ‘z’ in format [-Wformat=]
^ pv/testPVData. cpp:44: 5: note: in expansion of macro ‘SHOW’ sport.cpp:
../../testApp/
#define SHOW(T) testDiag("sizeof(" #T ")==%zu", sizeof(T))
../../testApp/
SHOW(Field);
^
and in blockingUDPTran
In file included from ../../src/ remote/ blockingUDPTran sport.cpp: 29:0: remote/ blockingUDPTran sport.cpp: In member function ‘bool epics:: pvAccess: :BlockingUDPTra nsport: :send(const char*, size_t, const osiSockAddr&)’: utils/pv/ logger. h:48:73: warning: unknown conversion type character ‘z’ in format [-Wformat=]
^ remote/ blockingUDPTran sport.cpp: 437:9: note: in expansion of macro ‘LOG’
LOG(logLevelD ebug, "UDP Tx (%zu) %s -> %s.",
../../src/
../../src/
#define LOG(level, format, ...) pvAccessLog(level, format, ##__VA_ARGS__)
../../src/
^
as well as in transportRegist ry.cpp line 48, codec.cpp line 1610, responseHandler s.cpp line 2029, pvlist.cpp several lines, testpdb.cpp line 310.
It seems we have a problem with mingw.