Skip to content

Commit

Permalink
qfsm: fix build with gcc 6 (#29245)
Browse files Browse the repository at this point in the history
  • Loading branch information
timor authored and aristidb committed Sep 11, 2017
1 parent 2248565 commit 9be724d
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkgs/applications/science/electronics/qfsm/default.nix
Expand Up @@ -10,7 +10,10 @@ stdenv.mkDerivation rec {

buildInputs = [ qt4 cmake graphviz pkgconfig ];

patches = [ ./drop-hardcoded-prefix.patch ];
patches = [
./drop-hardcoded-prefix.patch
./gcc6-fixes.patch
];

hardeningDisable = [ "format" ];

Expand Down
20 changes: 20 additions & 0 deletions pkgs/applications/science/electronics/qfsm/gcc6-fixes.patch
@@ -0,0 +1,20 @@
--- qfsm-0.54.0-Source-orig/src/FileIO.cpp 2015-01-02 19:01:46.000000000 +0100
+++ qfsm-0.54.0-Source/src/FileIO.cpp 2017-09-11 19:53:30.579488402 +0200
@@ -1617,7 +1617,7 @@
QString ext;

if (!imp)
- return FALSE;
+ return NULL;

Project* p=NULL;
importdlg->setAcceptMode(QFileDialog::AcceptOpen);
@@ -1641,7 +1641,7 @@
ifstream fin(act_importfile);

if (!fin)
- return FALSE;
+ return NULL;

emit setWaitCursor();

0 comments on commit 9be724d

Please sign in to comment.