|
From: <li...@us...> - 2017-06-26 15:27:59
|
Revision: 278
http://sourceforge.net/p/bugs-r/code/278
Author: ligges
Date: 2017-06-26 15:27:57 +0000 (Mon, 26 Jun 2017)
Log Message:
-----------
try to make GCC7 happy
Modified Paths:
--------------
trunk/BRugs/NEWS
trunk/BRugs/src/BugsHelper.c
Modified: trunk/BRugs/NEWS
===================================================================
--- trunk/BRugs/NEWS 2017-06-26 14:59:17 UTC (rev 277)
+++ trunk/BRugs/NEWS 2017-06-26 15:27:57 UTC (rev 278)
@@ -3,7 +3,7 @@
Version 0.9.0 (26 Jun 2017)
-------------
-fixes for new Windows toolchain
+fixes for new Windows toolchain and GCC7
Version 0.8.6 (16 Dec 2015)
-------------
Modified: trunk/BRugs/src/BugsHelper.c
===================================================================
--- trunk/BRugs/src/BugsHelper.c 2017-06-26 14:59:17 UTC (rev 277)
+++ trunk/BRugs/src/BugsHelper.c 2017-06-26 15:27:57 UTC (rev 278)
@@ -89,7 +89,7 @@
void read_input_real(char *tmpdir, double **out, int *len, int cmdno) {
char *fname;
- struct stat buf;
+ struct stat buf={.st_dev = 0};
FILE *ifp;
double tmp;
fname = (char *) malloc(strlen(tmpdir) + 16);
@@ -115,7 +115,7 @@
void read_input_char(char *tmpdir, char **out, int *len, int cmdno) {
char *fname;
- struct stat buf;
+ struct stat buf={.st_dev = 0};
FILE *ifp;
fname = (char *) malloc(strlen(tmpdir) + 16);
sprintf(fname, "%s/input%d.txt", tmpdir, cmdno);
@@ -252,7 +252,7 @@
int do_Internalize(char *tmpdir, char *extfile){
char *extpath, *int_cmd;
- struct stat buf;
+ struct stat buf={.st_dev = 0};
int res;
extpath = (char *) malloc(strlen(tmpdir) + 2 + strlen(extfile));
sprintf(extpath, "%s/%s", tmpdir, extfile);
@@ -289,7 +289,7 @@
char *cmd, cmd_type;
char *output_to_buffer_cmd = "BugsMappers.SetDest(2)";
FILE *ifp;
- struct stat buf;
+ struct stat buf={.st_dev = 0};
do_Cmd(output_to_buffer_cmd);
do_TempDir(trashdir);
do_Internalize(tmpdir, extfile);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|