BozzieBear / flexpp-bisonpp

Automatically exported from code.google.com/p/flexpp-bisonpp
0 stars 0 forks source link

flex++ and bison++ - gcc warns about mktemp() danger #1

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Link either program using:
   gcc (SUSE Linux) 4.5.1 20101208 [gcc-4_5-branch revision 167585]

Original issue reported on code.google.com by thomaslg...@gmail.com on 17 May 2011 at 4:07

GoogleCodeExporter commented 8 years ago
Why was this one warning left in the release?

Unlike all of the other warnings and errors that were fixed, this issue is not 
a C syntax or grammar problem; it is merely a "suggestion" to switch library 
calls:
  files.c:302: warning: the use of `mktemp' is dangerous, better use `mkstemp'

Converting requires a minor change to the program logic and testing of several 
error conditions. Given the time constraints for the first release, the risk of 
damaging the programs' error handling seemed greater than the reward of 
silencing this last message.

Original comment by thomaslg...@gmail.com on 29 Jun 2011 at 1:17