Hello,
there are several ways, but probably you want to use the -Wmsg compiler option:
-WmsgSd4301
disables the message 4301.
See the -Wmsg option where you can move messages around (to disable, to warning, to error, etc).
Otherwise you could use the
#pragma MESSAGE DISABLE C4301
but for this you would have to put that into your sources where you want to disable the message.
Another way would be to put the above pragma into a header file (e.g. message.h) and then have it included for all your files you compile, using the -AddIncl compiler option:
-AddInclmessage.h
Erich