Csound Csound-dev Csound-tekno Search About

[Cs-dev] Compiler warnings

Date2014-09-10 21:19
FromAndres Cabrera
Subject[Cs-dev] Compiler warnings
AttachmentsNone  None  
Hi,

After an upgrade, I am getting tons of compiler warnings like:

/home/andres/Documents/src/csound-csound6-git/Engine/cs_par_orc_semantic_analysis.c: In function ‘csp_orc_sa_global_read_write_add_list’:
/home/andres/Documents/src/csound-csound6-git/Engine/cs_par_orc_semantic_analysis.c:120:19: warning: format not a string literal and no format arguments [-Wformat-security]
                   Str("Invalid NULL parameter set to add to global read, "
                   ^

The solution is described here:

Date2014-09-10 21:26
FromFelipe Sateler
SubjectRe: [Cs-dev] Compiler warnings
Alternatively, the format_arg attribute can be specified for Str:

https://gcc.gnu.org/onlinedocs/gcc/Function-Attributes.html

On Wed, Sep 10, 2014 at 5:19 PM, Andres Cabrera  wrote:
> Hi,
>
> After an upgrade, I am getting tons of compiler warnings like:
>
> /home/andres/Documents/src/csound-csound6-git/Engine/cs_par_orc_semantic_analysis.c:
> In function ‘csp_orc_sa_global_read_write_add_list’:
> /home/andres/Documents/src/csound-csound6-git/Engine/cs_par_orc_semantic_analysis.c:120:19:
> warning: format not a string literal and no format arguments
> [-Wformat-security]
>                    Str("Invalid NULL parameter set to add to global read, "
>                    ^
>
> The solution is described here:
>
> http://stackoverflow.com/questions/9707569/c-array-warning-format-not-a-string-literal
>
>
> Should this be fixed?
>
> Cheers,
> Andrés
>
> ------------------------------------------------------------------------------
> Want excitement?
> Manually upgrade your production database.
> When you want reliability, choose Perforce
> Perforce version control. Predictably reliable.
> http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>



-- 

Saludos,
Felipe Sateler

------------------------------------------------------------------------------
Want excitement?
Manually upgrade your production database.
When you want reliability, choose Perforce
Perforce version control. Predictably reliable.
http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csou

Date2014-09-10 21:44
Fromjpff@cs.bath.ac.uk
SubjectRe: [Cs-dev] Compiler warnings
AttachmentsNone