Warnings when I use make command

how can i fixe this warnings ?

These are warning you that you have four unused variables in your code (I see that your source file is in “my_examples”, which means you wrote it, or modified it, yourself).

You declared those variables, but then you don’t use them for anything in the code. If you don’t need them, get rid of them. If you do need them, make sure you didn’t misspell the names somewhere else.

If these are just placements (new G4PVPlacement(...), then you can get away with just the new statement, and not assigning it to a variable. The pointer is owned by the Geometry Store, not by your user code.


That is my first example in geant4.
It’s fixed thank you