You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
would like to understand why the minimal example report so many warning:
crow version: v1.2.1.2
\crow\mustache.h(116,48): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data
\crow\mustache.h(97,33): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data
\crow\json.h(1747,32): warning C4267: 'return': conversion from 'size_t' to 'int', possible loss of data
\crow\json.h(1265,35): warning C4267: 'argument': conversion from 'size_t' to 'uint32_t', possible loss of data
\crow\http_parser_merged.h(607,32): warning C4244: '=': conversion from '__int64' to 'unsigned long', possible loss of data
\crow\http_parser_merged.h(587,32): warning C4244: '=': conversion from '__int64' to 'unsigned long', possible loss of data
#ifdef _WIN64
#define _WIN32_WINNT 0x0A00 // Windows 10
#endif // End of _WIN64 check
#include "crow.h"
void main() {
crow::SimpleApp app; //define your crow application
//define your endpoint at the root directory
CROW_ROUTE(app, "/")([]() {
return "Hello world";
});
//set the port, set the app to run on multiple threads, and run the app
app.port(18080).multithreaded().run();
}
The text was updated successfully, but these errors were encountered:
Because we enabled this warnings some time ago for all systems and nobody was fixing them up to now.
It is easy to introduce new bugs by fixing them in my experience.
There is a draft for a pull request to fix them: #870
Hadn't the time to come back to the problem.
would like to understand why the minimal example report so many warning:
crow version: v1.2.1.2
The text was updated successfully, but these errors were encountered: