1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-20 04:02:27 +00:00

audio/spiralsynthmodular: Fix build with Clang 6

SpiralSynthModular.C:1016:14: error: comparison between pointer and integer ('char *' and 'int')
        if (fn && fn!='\0')
                  ~~^ ~~~~

http://beefy12.nyi.freebsd.org/data/head-amd64-default/p475478_s336801/logs/errors/spiralsynthmodular-0.2.2a_9.log
This commit is contained in:
Tobias Kortkamp 2018-08-01 06:04:56 +00:00
parent 78e1e1aaee
commit 3d93b5ef60
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=476156
5 changed files with 76 additions and 1 deletions

View File

@ -3,7 +3,7 @@
PORTNAME= spiralsynthmodular
PORTVERSION= 0.2.2a
PORTREVISION= 9
PORTREVISION= 10
CATEGORIES= audio
MASTER_SITES= SF/spiralmodular/spiralmodular/${PORTVERSION}%20%28Latest%20Version%29
DISTNAME= spiralmodular-${PORTVERSION}

View File

@ -0,0 +1,20 @@
--- SpiralSound/Plugins/PoshSamplerPlugin/PoshSamplerPluginGUI.C.orig 2018-08-01 05:59:24 UTC
+++ SpiralSound/Plugins/PoshSamplerPlugin/PoshSamplerPluginGUI.C
@@ -502,7 +502,7 @@ inline void PoshSamplerPluginGUI::cb_Load_i(Fl_Button*
{
char *fn=fl_file_chooser("Load a sample", "{*.wav,*.WAV}", NULL);
- if (fn && fn!='\0')
+ if (fn && *fn!='\0')
{
strcpy(m_TextBuf,fn);
m_GUICH->SetData("Name",m_TextBuf);
@@ -523,7 +523,7 @@ inline void PoshSamplerPluginGUI::cb_Save_i(Fl_Button*
{
char *fn=fl_file_chooser("Save sample", "{*.wav,*.WAV}", NULL);
- if (fn && fn!='\0')
+ if (fn && *fn!='\0')
{
strcpy(m_TextBuf,fn);
m_GUICH->Set("Name",m_TextBuf);

View File

@ -0,0 +1,20 @@
--- SpiralSound/Plugins/SpiralLoopPlugin/SpiralLoopPluginGUI.C.orig 2018-08-01 06:00:29 UTC
+++ SpiralSound/Plugins/SpiralLoopPlugin/SpiralLoopPluginGUI.C
@@ -350,7 +350,7 @@ inline void SpiralLoopPluginGUI::cb_Load_i(Fl_Button*
{
char *fn=fl_file_chooser("Load a sample", "{*.wav,*.WAV}", NULL);
- if (fn && fn!='\0')
+ if (fn && *fn!='\0')
{
strcpy(m_TextBuf,fn);
m_GUICH->SetData("Name",m_TextBuf);
@@ -368,7 +368,7 @@ inline void SpiralLoopPluginGUI::cb_Save_i(Fl_Button*
{
char *fn=fl_file_chooser("Load a sample", "{*.wav,*.WAV}", NULL);
- if (fn && fn!='\0')
+ if (fn && *fn!='\0')
{
strcpy(m_TextBuf,fn);
m_GUICH->SetData("Name",m_TextBuf);

View File

@ -0,0 +1,11 @@
--- SpiralSound/Plugins/StreamPlugin/StreamPluginGUI.C.orig 2018-08-01 06:01:08 UTC
+++ SpiralSound/Plugins/StreamPlugin/StreamPluginGUI.C
@@ -220,7 +220,7 @@ void StreamPluginGUI::cb_Pos (Fl_Slider* o, void* v) {
inline void StreamPluginGUI::cb_Load_i (Fl_Button* o, void* v) {
char *fn=fl_file_chooser("Load a sample", "{*.wav,*.WAV}", NULL);
- if (fn && fn!='\0') {
+ if (fn && *fn!='\0') {
strcpy (m_TextBuf, fn);
m_GUICH->SetData ("FileName", (void*)m_TextBuf);
m_GUICH->SetCommand (StreamPlugin::LOAD);

View File

@ -0,0 +1,24 @@
SpiralSynthModular.C:1016:14: error: comparison between pointer and integer ('char *' and 'int')
if (fn && fn!='\0')
~~^ ~~~~
--- SpiralSynthModular.C.orig 2018-08-01 05:55:58 UTC
+++ SpiralSynthModular.C
@@ -1013,7 +1013,7 @@ inline void SynthModular::cb_Load_i(Fl_Button* o, void
char *fn=fl_file_chooser("Load a patch", "*.ssm", NULL);
- if (fn && fn!='\0')
+ if (fn && *fn!='\0')
{
ifstream inf(fn);
@@ -1039,7 +1039,7 @@ inline void SynthModular::cb_Save_i(Fl_Button* o, void
{
char *fn=fl_file_chooser("Save a patch", "*.ssm", NULL);
- if (fn && fn!='\0')
+ if (fn && *fn!='\0')
{
ifstream ifl(fn);
if (ifl)