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

microprofile build doesn't work #1689

Closed
olehnikolaiev opened this issue Oct 9, 2023 · 1 comment · Fixed by #1690
Closed

microprofile build doesn't work #1689

olehnikolaiev opened this issue Oct 9, 2023 · 1 comment · Fixed by #1690
Assignees
Labels
bug Something isn't working
Milestone

Comments

@olehnikolaiev
Copy link
Contributor

compiler returns an error when trying to build skaled with -DMICROPROFILE=ON

/home/oleh/work/skaled/libdevcore/microprofile.cpp:986:36: error: ‘void* memset(void*, int, size_t)’ clearing an object of type ‘struct MicroProfile’ with no trivial copy-assignment; use value-initialization instead [-Werror=class-memaccess]
  986 |         memset( &S, 0, sizeof( S ) );
      |                                    ^
/home/oleh/work/skaled/libdevcore/microprofile.cpp:496:8: note: ‘struct MicroProfile’ declared here
  496 | struct MicroProfile {
      |        ^~~~~~~~~~~~
/home/oleh/work/skaled/libdevcore/microprofile.cpp: In function ‘MicroProfileThreadLog* MicroProfileCreateThreadLog(const char*)’:
/home/oleh/work/skaled/libdevcore/microprofile.cpp:1136:42: error: ‘void* memset(void*, int, size_t)’ clearing an object of type ‘struct MicroProfileThreadLog’ with no trivial copy-assignment; use value-initialization instead [-Werror=class-memaccess]
 1136 |         memset( pLog, 0, sizeof( *pLog ) );
@PolinaKiporenko
Copy link
Contributor

Added in 2.3 release due to it small fix and was found during work on #1640

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants