Ok, I solved the issue for now by commenting lines out in Werror.mk :

line 98 - 104:

  # ifeq ($(NSS_ENABLE_WERROR),1)
      WARNING_CFLAGS += -Werror
   # else
      # Old versions of gcc (< 4.8) don't support #pragma diagnostic in functions.       # Use this to disable use of that #pragma and the warnings it suppresses.
   #   WARNING_CFLAGS += -DNSS_NO_GCC48
   # endif

Next question is how to set NSS_ENABLE_WERROR in our configuration in order to enhance build ability on various systems.

Am 27.07.23 um 00:33 schrieb Peter Kovacs:
Hi all,


I have an issue building nss. does anyone know what todo with this error?


../../../../pr/src/io/pripv6.c:135:14:error: variable 'rv' set but not used [-Werror=unused-but-set-variable]
 135 |     PRStatus rv;
     | ^~
../../../../pr/src/io/pripv6.c:In function 'Ipv6ToIpv4SocketAcceptRead':
../../../../pr/src/io/pripv6.c:173:14:error: variable 'rv' set but not used [-Werror=unused-but-set-variable]
 173 |     PRStatus rv;
     | ^~


I have set :

export CFLAGS='-Wno-unused-variable -Wno-stringop-truncation -Wno-unused-but-set-variable' export CXXFLAGS='--std=gnu++98 -Wno-unused-variable -Wno-stringop-truncation -Wno-unused-but-set-variable'


I build with

Ubuntu 22.04.2 LTS

thanks for any ideas

all the best

peter


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail: dev-h...@openoffice.apache.org

Reply via email to