-
Notifications
You must be signed in to change notification settings - Fork 293
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
Add t8n full version printing #612
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,7 +26,7 @@ struct buildinfo | |
const char* build_type; | ||
}; | ||
|
||
const struct buildinfo* @FUNCTION_NAME@(); | ||
const struct buildinfo* @FUNCTION_NAME@(void); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Put changes to cable in separate commit and possibly add a CHANGELOG entry in the cmake file. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. done |
||
|
||
#ifdef __cplusplus | ||
} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,7 @@ | |
#include "../state/rlp.hpp" | ||
#include "../statetest/statetest.hpp" | ||
#include <evmone/evmone.h> | ||
#include <evmone/version.h> | ||
#include <nlohmann/json.hpp> | ||
#include <filesystem> | ||
#include <fstream> | ||
|
@@ -39,7 +40,7 @@ int main(int argc, const char* argv[]) | |
|
||
if (arg == "-v") | ||
{ | ||
std::cout << "evmone-t8n " PROJECT_VERSION "\n"; | ||
std::cout << "evmone-t8n " EVMONE_VERSION "\n"; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What is the difference in output? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
return 0; | ||
} | ||
if (arg == "--state.fork" && ++i < argc) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are these needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah but why wasn't this a problem before?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's enabled by default since clang 15.
https://releases.llvm.org/14.0.0/tools/clang/docs/DiagnosticsReference.html#wstrict-prototypes
https://releases.llvm.org/15.0.0/tools/clang/docs/DiagnosticsReference.html#wstrict-prototypes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah but why is
master
working?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you sure you need
(void)
in the function definition?FYI this is related to C23 where the meaning of declaration of
int f()
changes fromint f(...)
toint f(void)
. But I think they overdone the warning.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So for
clang 16.0.0
I need but forappleclang 14.0.0.14000029
I don't need. I can stop using newer compiler and we don't need to change anything.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
but it looks that it's not only my problem ;) https://app.circleci.com/pipelines/github/ethereum/evmone/4335/workflows/d5b6d7cf-9826-45b1-8586-a9366b89a908/jobs/47373
Ci uses clang 15 which enables this warning by default.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think i tested definition too, but will check again on CI
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also the same error.
https://app.circleci.com/pipelines/github/ethereum/evmone/4336/workflows/2a430d17-fbc4-428c-ac0e-80aa38298ef5/jobs/47384