Skip to content

Commit 9be724d

Browse files
timoraristidb
authored andcommittedSep 11, 2017
qfsm: fix build with gcc 6 (#29245)
1 parent 2248565 commit 9be724d

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed
 

‎pkgs/applications/science/electronics/qfsm/default.nix

+4-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@ stdenv.mkDerivation rec {
1010

1111
buildInputs = [ qt4 cmake graphviz pkgconfig ];
1212

13-
patches = [ ./drop-hardcoded-prefix.patch ];
13+
patches = [
14+
./drop-hardcoded-prefix.patch
15+
./gcc6-fixes.patch
16+
];
1417

1518
hardeningDisable = [ "format" ];
1619

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
--- qfsm-0.54.0-Source-orig/src/FileIO.cpp 2015-01-02 19:01:46.000000000 +0100
2+
+++ qfsm-0.54.0-Source/src/FileIO.cpp 2017-09-11 19:53:30.579488402 +0200
3+
@@ -1617,7 +1617,7 @@
4+
QString ext;
5+
6+
if (!imp)
7+
- return FALSE;
8+
+ return NULL;
9+
10+
Project* p=NULL;
11+
importdlg->setAcceptMode(QFileDialog::AcceptOpen);
12+
@@ -1641,7 +1641,7 @@
13+
ifstream fin(act_importfile);
14+
15+
if (!fin)
16+
- return FALSE;
17+
+ return NULL;
18+
19+
emit setWaitCursor();
20+

0 commit comments

Comments
 (0)
Please sign in to comment.