Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warning messages with CUDA nvcc compiler #68

Open
tmartin-gh opened this issue Mar 17, 2023 · 0 comments · May be fixed by #69
Open

Warning messages with CUDA nvcc compiler #68

tmartin-gh opened this issue Mar 17, 2023 · 0 comments · May be fixed by #69

Comments

@tmartin-gh
Copy link

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 tmartin-gh linked a pull request Mar 17, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant