felix-lang / felix

The Felix Programming Language
Other
805 stars 43 forks source link

Clean up format string warnings in GC package #96

Open gbluma opened 7 years ago

gbluma commented 7 years ago

Maybe this is worth looking into.

Make lib flx_gc
------------
[make_lib] source directory build\release\share\src/gc
toolchain_msvc_win32 (version 2)
copying all header files
Copying headers .*\.h(pp)? > ${0}
mkdir build
mkdir build\release
mkdir build\release\win32
mkdir build\release\win32\lib
mkdir build\release\win32\lib\rtl
cp build\release\share\src/gc\flx_gc_private.hpp  build\release\win32\lib\rtl\flx_gc_private.hpp #done
C++: Compiling  [dynamic] flx_collector.cpp -> build\rtl-tmp\flx_collector_dynamic.obj
C:/Users/garrett_b/Documents/Projects/felix/felix/src/packages/gc.fdoc(1327): warning C4477: 'fprintf' : format string '%s' requires an argument of type 'char *', but variadic argu
ment 1 has type 'void *'
C:/Users/garrett_b/Documents/Projects/felix/felix/src/packages/gc.fdoc(1408): warning C4477: 'fprintf' : format string '%p' requires an argument of type 'void *', but variadic argu
ment 1 has type 'Word_t'
C:/Users/garrett_b/Documents/Projects/felix/felix/src/packages/gc.fdoc(1414): warning C4477: 'fprintf' : format string '%p' requires an argument of type 'void *', but variadic argu
ment 1 has type 'Word_t'
C:/Users/garrett_b/Documents/Projects/felix/felix/src/packages/gc.fdoc(1675): warning C4477: 'fprintf' : format string '%p' requires an argument of type 'void *', but variadic argu
ment 1 has type 'Word_t'
C:/Users/garrett_b/Documents/Projects/felix/felix/src/packages/gc.fdoc(1680): warning C4477: 'fprintf' : format string '%p' requires an argument of type 'void *', but variadic argu
ment 1 has type 'Word_t'
C:/Users/garrett_b/Documents/Projects/felix/felix/src/packages/gc.fdoc(1848): warning C4477: 'fprintf' : format string '%p' requires an argument of type 'void *', but variadic argu
ment 1 has type 'Word_t'
C++: Compiling  [dynamic] flx_gc.cpp -> build\rtl-tmp\flx_gc_dynamic.obj
C++: Compiling  [dynamic] flx_judy_scanner.cpp -> build\rtl-tmp\flx_judy_scanner_dynamic.obj
C++: Compiling  [dynamic] flx_serialisers.cpp -> build\rtl-tmp\flx_serialisers_dynamic.obj
Dynamic Linking library build\release\win32\lib\rtl\flx_gc_dynamic.dll
C++: Compiling [static] flx_collector.cpp -> build\rtl-tmp\flx_collector_static.obj
C:/Users/garrett_b/Documents/Projects/felix/felix/src/packages/gc.fdoc(1327): warning C4477: 'fprintf' : format string '%s' requires an argument of type 'char *', but variadic argu
ment 1 has type 'void *'
C:/Users/garrett_b/Documents/Projects/felix/felix/src/packages/gc.fdoc(1408): warning C4477: 'fprintf' : format string '%p' requires an argument of type 'void *', but variadic argu
ment 1 has type 'Word_t'
C:/Users/garrett_b/Documents/Projects/felix/felix/src/packages/gc.fdoc(1414): warning C4477: 'fprintf' : format string '%p' requires an argument of type 'void *', but variadic argu
ment 1 has type 'Word_t'
C:/Users/garrett_b/Documents/Projects/felix/felix/src/packages/gc.fdoc(1675): warning C4477: 'fprintf' : format string '%p' requires an argument of type 'void *', but variadic argu
ment 1 has type 'Word_t'
C:/Users/garrett_b/Documents/Projects/felix/felix/src/packages/gc.fdoc(1680): warning C4477: 'fprintf' : format string '%p' requires an argument of type 'void *', but variadic argu
ment 1 has type 'Word_t'
C:/Users/garrett_b/Documents/Projects/felix/felix/src/packages/gc.fdoc(1848): warning C4477: 'fprintf' : format string '%p' requires an argument of type 'void *', but variadic argu
ment 1 has type 'Word_t'
C++: Compiling [static] flx_gc.cpp -> build\rtl-tmp\flx_gc_static.obj
C++: Compiling [static] flx_judy_scanner.cpp -> build\rtl-tmp\flx_judy_scanner_static.obj
skaller commented 4 years ago

Is this done or not?

gbluma commented 4 years ago

Not done. I saw these warnings again in my last build. Should be easy to take care of, just need to add some explicit conversions.

No blockage on compilation. Low priority.