Csound Csound-dev Csound-tekno Search About

[Cs-dev] Compile warnings

Date2013-06-21 01:18
FromAndres Cabrera
Subject[Cs-dev] Compile warnings
Hi,

On my system I'm getting the following compile warnings:

/home/andres/Documents/src/csound-csound6-git/Engine/new_orc_parser.c: 
In function 'csoundParseOrc':

/home/andres/Documents/src/csound-csound6-git/Engine/new_orc_parser.c:108:9: 
warning: passing argument 1 of 'corfile_puts' discards 'const' qualifier 
from pointer target type [enabled by default]

In file included from 
/home/andres/Documents/src/csound-csound6-git/Engine/new_orc_parser.c:28:0:

/home/andres/Documents/src/csound-csound6-git/./H/corfile.h:31:6: note: 
expected 'char *' but argument is of type 'const char *'

[ 61%] Building C object CMakeFiles/csound64.dir/Engine/symbtab.c.o

[ 61%] Building C object CMakeFiles/csound64.dir/Engine/cs_new_dispatch.c.o

/home/andres/Documents/src/csound-csound6-git/Engine/cs_new_dispatch.c: 
In function 'recreate_dag':

/home/andres/Documents/src/csound-csound6-git/Engine/cs_new_dispatch.c:132:61: 
warning: passing argument 2 of 'mrealloc' discards 'volatile' qualifier 
from pointer target type [enabled by default]

In file included from 
/home/andres/Documents/src/csound-csound6-git/./include/csoundCore.h:789:0,

from 
/home/andres/Documents/src/csound-csound6-git/Engine/cs_new_dispatch.c:38:

/home/andres/Documents/src/csound-csound6-git/./H/prototyp.h:35:10: 
note: expected 'void *' but argument is of type 'volatile enum state *'

/home/andres/Documents/src/csound-csound6-git/Engine/cs_new_dispatch.c:134:7: 
warning: passing argument 2 of 'mrealloc' discards 'volatile' qualifier 
from pointer target type [enabled by default]

In file included from 
/home/andres/Documents/src/csound-csound6-git/./include/csoundCore.h:789:0,

from 
/home/andres/Documents/src/csound-csound6-git/Engine/cs_new_dispatch.c:38:

/home/andres/Documents/src/csound-csound6-git/./H/prototyp.h:35:10: 
note: expected 'void *' but argument is of type 'struct watchList * 
volatile*'

[ 72%] Building CXX object interfaces/CMakeFiles/libcsnd.dir/CppSound.cpp.o

/home/andres/Documents/src/csound-csound6-git/interfaces/CppSound.cpp: 
In member function 'virtual int CppSound::compile(int, char**)':

/home/andres/Documents/src/csound-csound6-git/interfaces/CppSound.cpp:52:20: 
warning: deprecated conversion from string constant to 
'std::vector::value_type {aka char*}' [-Wwrite-strings]



Probably harmless, but still worth looking at maybe.


Cheers,
Andrés



------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net