I use gnatmake 13.2.0 on an up-to-date Void Linux machine, and have a shell script to compile and run testt.adb no matter what testt.adb’s outer procedure, function or package is named. So of course I get warnings like the following:
“testt.adb:3:11: warning: file name does not match unit name, should be “hello.adb” [enabled by default]”
Because I’m putting the output of my shell script in my documentation, I’d prefer not to confuse things with this warning. I looked at the output of gnatmake -h and couldn’t find anything that seemed to turn off this particular warning, even in the -gnatwxx section.
Is there a way I can tell gnatmake not to issue this particular warning?
Thanks [simonjwright]. Now I have a little bit better idea of what pragmas are.
It being 4am, I figured I wouldn’t get an answer for the next 6 hours, so I fit the shellscript with a grep -v that removed the offending warning. I’m going to go to sleep now, and tomorrow I’ll decide whether to use the pragma or whether to use the shellscript grep -v. Either way, I’ve been wondering what pragmas are, and now have a little better idea, so thanks very much.