Workaround cling limitation (ignoring -Wno-xyz) with pragmas

transforming -Wno-xyz into a diagnostic pragma which instructs cling
to ignore the -Wxyz warnings.