[asterisk-bugs] [JIRA] (ASTERISK-27560) [patch] clang 5 does not know -Wno-format-truncation

Alexander Traud (JIRA) noreply at issues.asterisk.org
Fri Jan 12 03:07:39 CST 2018


    [ https://issues.asterisk.org/jira/browse/ASTERISK-27560?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=241489#comment-241489 ] 

Alexander Traud edited comment on ASTERISK-27560 at 1/12/18 3:06 AM:
---------------------------------------------------------------------

With {{./configure --with-pjproject-bundled}}, there is another warning issued by clang:{code}[CC] libasteriskpj.c -> libasteriskpj.o
warning: unknown warning option '-Wno-unused-but-set-variable'{code}This was caused by Commit [3173e91|https://github.com/asterisk/asterisk/commit/3173e91bab9edca6b1d6eba499aefa18edb3d993] and not fixed by [16c23b5|https://github.com/asterisk/asterisk/commit/16c23b57c747698cb760548bdea393a52a7f3abe]. Because those commits do not reference an issue report, I have to invite George manually.


was (Author: traud):
With {{./configure --with-pjproject-bundled}}, there is another warning issued by clang:{code}   [CC] libasteriskpj.c -> libasteriskpj.o
warning: unknown warning option '-Wno-unused-but-set-variable'{code}This was caused by Commit 3173e91 and [16c23b5|https://github.com/asterisk/asterisk/commit/16c23b57c747698cb760548bdea393a52a7f3abe].

> [patch] clang 5 does not know -Wno-format-truncation
> ----------------------------------------------------
>
>                 Key: ASTERISK-27560
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-27560
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Core/BuildSystem
>    Affects Versions: 13.8.2, 15.1.5
>            Reporter: Alexander Traud
>            Assignee: Alexander Traud
>            Severity: Trivial
>              Labels: patch
>         Attachments: clang_unknown_warning.patch
>
>
> ASTERISK-27156 fixed warnings related to GCC 7 including those related to {{format-truncation=1}}. Then, ASTERISK-27171 allowed older GCC versions again which do not understand {{-Wno-format-truncation}}. However, that change was not complete. Still, other compilers like clang 5.0 print{code}warning: unknown warning option '-Wno-format-truncation' [-Wunknown-warning-option]{code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list