[Home]

Summary:ASTERISK-27560: [patch] clang 5 does not know -Wno-format-truncation
Reporter:Alexander Traud (traud)Labels:patch
Date Opened:2018-01-06 07:29:02.000-0600Date Closed:2018-01-09 06:40:39.000-0600
Priority:TrivialRegression?
Status:Closed/CompleteComponents:Core/BuildSystem
Versions:13.8.2 15.1.5 Frequency of
Occurrence
Related
Issues:
is caused byASTERISK-27156 Asterisk won't compile on Fedora 26 with devmode enabled.
Environment:Attachments:( 0) clang_unknown_warning.patch
Description: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}
Comments:By: Friendly Automation (friendly-automation) 2018-01-09 06:40:40.619-0600

Change 7860 merged by Jenkins2:
BuildSystem: Really do not pass unknown-warning options to the compiler.

[https://gerrit.asterisk.org/7860|https://gerrit.asterisk.org/7860]

By: Friendly Automation (friendly-automation) 2018-01-09 06:40:51.893-0600

Change 7859 merged by Jenkins2:
BuildSystem: Really do not pass unknown-warning options to the compiler.

[https://gerrit.asterisk.org/7859|https://gerrit.asterisk.org/7859]

By: Friendly Automation (friendly-automation) 2018-01-09 06:41:27.857-0600

Change 7861 merged by Jenkins2:
BuildSystem: Really do not pass unknown-warning options to the compiler.

[https://gerrit.asterisk.org/7861|https://gerrit.asterisk.org/7861]

By: Alexander Traud (traud) 2018-01-12 03:04:37.215-0600

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.

By: Friendly Automation (friendly-automation) 2018-01-15 07:25:21.132-0600

Change 7939 merged by Jenkins2:
BuildSystem: Really do not pass unknown-warning options to the compiler.

[https://gerrit.asterisk.org/7939|https://gerrit.asterisk.org/7939]

By: Friendly Automation (friendly-automation) 2018-01-15 07:27:47.472-0600

Change 7941 merged by Jenkins2:
BuildSystem: Really do not pass unknown-warning options to the compiler.

[https://gerrit.asterisk.org/7941|https://gerrit.asterisk.org/7941]

By: Friendly Automation (friendly-automation) 2018-01-15 07:30:48.382-0600

Change 7940 merged by Jenkins2:
BuildSystem: Really do not pass unknown-warning options to the compiler.

[https://gerrit.asterisk.org/7940|https://gerrit.asterisk.org/7940]