I would like to suppress these warnings but I could not figure out how to do it.
Those are not warnings you are seeing, those are Errors. The output tells you very clearly when a diagnostic message is a warning or an error. You've given the compiler an error number (6002) and told it to suppress the warning with that number, but such a warning does not exist. So, you've only succeeded in creating an additional error
In this case, the message you're trying to suppress is a fatal compiler error; your only option is to fix your code. You must define a primary key for every Entity Framework object, or the Entity Framework will not work with it. The wording of the error is a bit confusing, as it implies that somehow the compiler has "worked around" your problem, but that's not the case.
For more details about that specific error, and how to fix it:
Error 6002: The table/view does not have a primary key defined