[DiscordArchive] the compiler, generator or cmake itself?
[DiscordArchive] the compiler, generator or cmake itself?
Archived author: raizo • Posted: 2021-07-03T13:59:53.682000+00:00
Original source
the compiler, generator or cmake itself?
Archived author: stevej • Posted: 2021-07-03T14:01:55.541000+00:00
Original source
For example, if in some file you are using a field that you should not, for example, a BOOL instead of an INT, that kind of warnings that the `make -j` command generates if something is "wrong". I put it in quotes, because they are warnings, not errors. Anyway, I would like to be able to have in some file, if it is possible.
Archived author: stevej • Posted: 2021-07-03T14:03:55.982000+00:00
Original source
For example.
Archived author: stevej • Posted: 2021-07-03T14:04:19.707000+00:00
Original source
```
src/server/game/Scripting/ScriptMgr.h: In member function 'virtual void GameEventScript::FillWorldStates(Player*, WorldStateBuilder&)':
src/server/game/Scripting/ScriptMgr.h:919:46: warning: unused parameter 'player' [-Wunused-parameter]
virtual void FillWorldStates(Player* player, WorldStateBuilder& builder) { }
```
Archived author: stevej • Posted: 2021-07-03T14:05:08.294000+00:00
Original source
I would like to keep such warnings in a file, so that I can correct them.
Archived author: raizo • Posted: 2021-07-03T14:06:12.858000+00:00
Original source
that is a compiler error
Archived author: raizo • Posted: 2021-07-03T14:06:16.530000+00:00
Original source
or rather warning
Archived author: raizo • Posted: 2021-07-03T14:06:25.193000+00:00
Original source
im guessing youre using clang?
Archived author: raizo • Posted: 2021-07-03T14:08:31.332000+00:00
Original source
clang puts all warnings/errors in stderr so you can redirect stderr to stdout and then make stdout output to a file
Archived author: stevej • Posted: 2021-07-03T14:08:50.782000+00:00
Original source
These warnings are not from `AzerothCore`, I am using `gcc` in another old project.
But I was curious about these warnings. I may have to edit the `Makefile`, I'll have to do some research on this.