global: mark code units that generate warnings with -Wsign-compare

Mark code units that generate warnings with `-Wsign-compare`. This
allows for a structured approach to get rid of all such warnings over
time in a way that can be easily measured.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Patrick Steinhardt
2024-12-06 11:27:19 +01:00
committed by Junio C Hamano
parent 709fdce089
commit 41f43b8243
265 changed files with 439 additions and 2 deletions

View File

@ -1,3 +1,5 @@
#define DISABLE_SIGN_COMPARE_WARNINGS
#include "lib-reftable.h"
#include "test-lib.h"
#include "reftable/constants.h"

View File

@ -1,4 +1,5 @@
#define USE_THE_REPOSITORY_VARIABLE
#define DISABLE_SIGN_COMPARE_WARNINGS
#include "test-lib.h"
#include "object.h"

View File

@ -1,3 +1,5 @@
#define DISABLE_SIGN_COMPARE_WARNINGS
#include "test-lib.h"
#include "prio-queue.h"

View File

@ -6,6 +6,8 @@ license that can be found in the LICENSE file or at
https://developers.google.com/open-source/licenses/bsd
*/
#define DISABLE_SIGN_COMPARE_WARNINGS
#include "test-lib.h"
#include "lib-reftable.h"
#include "reftable/basics.h"

View File

@ -6,6 +6,8 @@ license that can be found in the LICENSE file or at
https://developers.google.com/open-source/licenses/bsd
*/
#define DISABLE_SIGN_COMPARE_WARNINGS
#include "test-lib.h"
#include "lib-reftable.h"
#include "reftable/merged.h"

View File

@ -1,3 +1,5 @@
#define DISABLE_SIGN_COMPARE_WARNINGS
#include "test-lib.h"
#include "trailer.h"

View File

@ -1,3 +1,5 @@
#define DISABLE_SIGN_COMPARE_WARNINGS
#include "test-lib.h"
enum result {