You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 10, 2025. It is now read-only.
Repository navigation
This repository was archived by the owner on Apr 10, 2025. It is now read-only.
/ngx_pagespeed-release-1.8.31.4-beta/src/ngx_pagespeed.cc
/root/ngx_pagespeed-release-1.8.31.4-beta/src/ngx_pagespeed.cc:1264:17: error: 'net_instaweb::{anonymous}::ps_main_conf_t* net_instaweb::{anonymous}::ps_get_main_config(ngx_http_request_t*)' defined but not used [-Werror=unused-function]
ps_main_conf_t* ps_get_main_config(ngx_http_request_t* r) {
The error is accurate: ps_get_main_config is defined and not used. I'll remove it.
For now, could you compile without the unused-function warning? This would mean adding something like CFLAGS="$CFLAGS -Wno-unused-function" to ngx_pagespeed/config.
I have the similar issue.
Debian GNU/Linux jessie/sid
gcc version 4.9.0 (Debian 4.9.0-7)
On nginx 1.6 (and 1.7.3 too) and ngx_pagespeed-release-1.8.31.4-beta
changed the title [-]Compile error build from source src/ngx_pagespeed.cc:1264:17: error: 'net_instaweb::{anonymous}[/-][+]Compilation error with gcc 4.9[/+]on Aug 4, 2014
Activity
Remove unused function. Fixes #739.
jeffkaufman commentedon Jun 27, 2014
The error is accurate:
ps_get_main_configis defined and not used. I'll remove it.For now, could you compile without the
unused-functionwarning? This would mean adding something likeCFLAGS="$CFLAGS -Wno-unused-function"tongx_pagespeed/config.jeffkaufman commentedon Jun 27, 2014
Oh, and what compiler and version are you using?
rcarl01 commentedon Jun 27, 2014
Nginx 1.7.2
gcc 4.9.0 (Debian 4.9.0.7)
Merge pull request #740 from pagespeed/jefftk-unused-function
loadaverage commentedon Jul 9, 2014
I have the similar issue.
Debian GNU/Linux jessie/sid
gcc version 4.9.0 (Debian 4.9.0-7)
On nginx 1.6 (and 1.7.3 too) and ngx_pagespeed-release-1.8.31.4-beta
oschaaf commentedon Jul 9, 2014
@jeffkaufman fixed this via e55b062 on the trunk-tracking branch. The patch should apply cleanly.
loadaverage commentedon Jul 9, 2014
@oschaaf Thanks.
jeffkaufman commentedon Aug 4, 2014
Fixed by #740
[-]Compile error build from source src/ngx_pagespeed.cc:1264:17: error: 'net_instaweb::{anonymous}[/-][+]Compilation error with gcc 4.9[/+]