View Single Post
  #1   (View Single Post)  
Old 21st August 2011
mgh21 mgh21 is offline
Real Name: Michael Hill
New User
 
Join Date: Aug 2011
Location: Australia
Posts: 7
Default OpenBSD 4.9: strcpy warnings & FORTRAN compiler

Hello,

I have installed OpenBSD 4.9 (on a Dell Optiplex) to update the hardware for an application written in FORTRAN. I am using the GNU FORTRAN compiler from the packages collection. (g95-4.2.4p5v0.tgz ). Compiling produces warnings about misuse of strcpy(), sprintf() and strcat().

/usr/local/.../libgfortran.so.2.0: warning: strcpy() is almost always misused, please use strlcpy()

and similar for sprintf() and snprintf(), and strcat() and strlcat()

I assume that these warnings come from issues within the FORTRAN compiler, and hence cannot be fixed by changing the FORTRAN code.

Is there a way to stop these warnings from coming up, as they are annoying the owner of the FORTRAN application.


Thank-you,

Michael Hill
Reply With Quote