Makefile: drop warning suppression on win build 54/6254/2
authorAntonio Borneo <borneo.antonio@gmail.com>
Sat, 15 May 2021 21:14:18 +0000 (23:14 +0200)
committerAntonio Borneo <borneo.antonio@gmail.com>
Mon, 30 Aug 2021 13:52:12 +0000 (13:52 +0000)
Commit dcdf71c21b99 ("- fix signed/unsigned build errors under
win32. Thanks Zach Welch <zw@superlucidity.net>") in 2009 prevents
gcc warnings on sign/unsigned comparisons while building for Win
on folders 'helper' and 'server'.
In 2011, commit b69119668ed8 ("RTOS Thread awareness support wip")
uses the same method on the new folder 'rtos'.

In mean time, all the incorrect sign/unsigned comparisons has been
fixed and no warning is present with the default -Wextra flag that
implies -Wsign-compare.
The comment:
# FD_* macros are sloppy with their signs on MinGW32 platform
seems linked to some old implementation of MinGW32 include file
that doesn't apply on current versions.

Remove the obsolete hacks to suppress the warnings.

Change-Id: I76dba9e54a647d3b9fbf1b7e9ae1844e3d7adc9a
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: https://review.openocd.org/c/openocd/+/6254
Tested-by: jenkins
Reviewed-by: Xiaofan Chen <xiaofanc@gmail.com>
src/helper/Makefile.am
src/rtos/Makefile.am
src/server/Makefile.am

index 0d886843ce7f69779711d86372e71195864a6013..c1aeebf0000d3cde92eb4079fd35b24d36af51ed 100644 (file)
@@ -30,12 +30,6 @@ noinst_LTLIBRARIES += %D%/libhelper.la
        %D%/jep106.inc \
        %D%/jim-nvp.h
 
        %D%/jep106.inc \
        %D%/jim-nvp.h
 
-%C%_libhelper_la_CFLAGS = $(AM_CFLAGS)
-if IS_MINGW
-# FD_* macros are sloppy with their signs on MinGW32 platform
-%C%_libhelper_la_CFLAGS += -Wno-sign-compare
-endif
-
 STARTUP_TCL_SRCS += %D%/startup.tcl
 EXTRA_DIST += \
        %D%/bin2char.sh \
 STARTUP_TCL_SRCS += %D%/startup.tcl
 EXTRA_DIST += \
        %D%/bin2char.sh \
index 49cb830e5aedbe09fa58a2f48c4f369b7106dec7..f09ac21a2efed2c40247bcb2d594bc6676dee6fe 100644 (file)
@@ -31,10 +31,3 @@ noinst_LTLIBRARIES += %D%/librtos.la
        %D%/rtos_riot_stackings.h \
        %D%/rtos_ucos_iii_stackings.h \
        %D%/nuttx_header.h
        %D%/rtos_riot_stackings.h \
        %D%/rtos_ucos_iii_stackings.h \
        %D%/nuttx_header.h
-
-%C%_librtos_la_CFLAGS = $(AM_CFLAGS)
-
-if IS_MINGW
-# FD_* macros are sloppy with their signs on MinGW32 platform
-%C%_librtos_la_CFLAGS += -Wno-sign-compare
-endif
index 5f7469a8495db91f793037aa88f2e3046ea5fd7d..fb5248bfdecedca5bc717fa9f46f97c3b4292ebb 100644 (file)
@@ -14,10 +14,4 @@ noinst_LTLIBRARIES += %D%/libserver.la
        %D%/ipdbg.c \
        %D%/ipdbg.h
 
        %D%/ipdbg.c \
        %D%/ipdbg.h
 
-%C%_libserver_la_CFLAGS = $(AM_CFLAGS)
-if IS_MINGW
-# FD_* macros are sloppy with their signs on MinGW32 platform
-%C%_libserver_la_CFLAGS += -Wno-sign-compare
-endif
-
 STARTUP_TCL_SRCS += %D%/startup.tcl
 STARTUP_TCL_SRCS += %D%/startup.tcl

Linking to existing account procedure

If you already have an account and want to add another login method you MUST first sign in with your existing account and then change URL to read https://review.openocd.org/login/?link to get to this page again but this time it'll work for linking. Thank you.

SSH host keys fingerprints

1024 SHA256:YKx8b7u5ZWdcbp7/4AeXNaqElP49m6QrwfXaqQGJAOk gerrit-code-review@openocd.zylin.com (DSA)
384 SHA256:jHIbSQa4REvwCFG4cq5LBlBLxmxSqelQPem/EXIrxjk gerrit-code-review@openocd.org (ECDSA)
521 SHA256:UAOPYkU9Fjtcao0Ul/Rrlnj/OsQvt+pgdYSZ4jOYdgs gerrit-code-review@openocd.org (ECDSA)
256 SHA256:A13M5QlnozFOvTllybRZH6vm7iSt0XLxbA48yfc2yfY gerrit-code-review@openocd.org (ECDSA)
256 SHA256:spYMBqEYoAOtK7yZBrcwE8ZpYt6b68Cfh9yEVetvbXg gerrit-code-review@openocd.org (ED25519)
+--[ED25519 256]--+
|=..              |
|+o..   .         |
|*.o   . .        |
|+B . . .         |
|Bo. = o S        |
|Oo.+ + =         |
|oB=.* = . o      |
| =+=.+   + E     |
|. .=o   . o      |
+----[SHA256]-----+
2048 SHA256:0Onrb7/PHjpo6iVZ7xQX2riKN83FJ3KGU0TvI0TaFG4 gerrit-code-review@openocd.zylin.com (RSA)