ASP-based solver: suppress warnings when constructing facts (#23090)
ASP-based solver: suppress warnings when constructing facts (#23090)

fixes #22786

Trying to get optimization flags for a specific target from
a compiler may trigger warnings. In the context of constructing
facts for the ASP-based solver we don't want to show these
warnings to the user, so here we simply ignore them.
LLNL/spack,LLNL/spack,LLNL/spack,LLNL/spack,LLNL/spack