Fix warnings compiling IR plugin