fmtlog icon indicating copy to clipboard operation
fmtlog copied to clipboard

Warning messages with CUDA nvcc compiler

Open tmartin-gh opened this issue 1 year ago • 0 comments

When using the NVIDIA compiler nvcc, the fmtlog library has some warnings.

First warning: fmtlog/fmtlog-inl.h(71): warning #170-D: pointer points outside of underlying object case 18: *(uint16_t*)(s + 16) = *(uint16_t*)(digit_pairs + ((num % 100) << 1)); num /= 100; ^ detected during: instantiation of "void fmtlogDetailT<___>::Str<SIZE>::fromi(T) [with ___=0, SIZE=4UL, T=int]" at line 279 instantiation of "void fmtlogDetailT<___>::resetDate() [with ___=0]" at line 101 instantiation of "fmtlogDetailT<___>::fmtlogDetailT() [with ___=0]" at line 541 implicit definition of "fmtlogDetailT<0> fmtlogDetailWrapper<__>::impl [with __=0]" at line 541

Second warning: fmtlog/fmtlog.h(644): warning #186-D: pointless comparison of unsigned integer with zero for (size_t i = 0; i < num_named_args; ++i) { ^ detected during: instantiation of "fmt::v9::string_view fmtlogT<__>::unNameFormat<Reorder,Args...>(fmt::v9::string_view, uint32_t *, const Args &...) [with __=0, Reorder=false, Args=<double>]" at line 674 instantiation of "void fmtlogT<__>::log(uint32_t &, int64_t, const char *, fmtlogT<__>::LogLevel, fmt::v9::format_string<fmtlogdetail::UnrefPtr<fmt::v9::remove_cvref_t<Args>>::type...>, Args &&...) noexcept [with __=0, Args=<double>]" at line 11 of /file/path/test.cu

tmartin-gh avatar Mar 17 '23 00:03 tmartin-gh