File tree Expand file tree Collapse file tree 4 files changed +14
-5
lines changed Expand file tree Collapse file tree 4 files changed +14
-5
lines changed Original file line number Diff line number Diff line change @@ -333,7 +333,7 @@ static const wchar_t *make_relative_to(const wchar_t *path,
333
333
334
334
len = wcslen (path );
335
335
if (i + len + 1 > size ) {
336
- error ("Could not make '%S ' relative to '%S ' (too large)" ,
336
+ error ("Could not make '%ls ' relative to '%ls ' (too large)" ,
337
337
path , relative_to );
338
338
return NULL ;
339
339
}
Original file line number Diff line number Diff line change 1
1
#include "../../git-compat-util.h"
2
2
3
+ #pragma GCC diagnostic push
4
+ #pragma GCC diagnostic ignored "-Wpedantic"
3
5
typedef struct dirent_DIR {
4
6
struct DIR base_dir ; /* extend base struct DIR */
5
7
HANDLE dd_handle ; /* FindFirstFile handle */
6
8
int dd_stat ; /* 0-based index */
7
9
struct dirent dd_dir ; /* includes d_type */
8
10
} dirent_DIR ;
11
+ #pragma GCC diagnostic pop
9
12
10
13
DIR * (* opendir )(const char * dirname ) = dirent_opendir ;
11
14
Original file line number Diff line number Diff line change @@ -38,6 +38,8 @@ static struct trace_key trace_fscache = TRACE_KEY_INIT(FSCACHE);
38
38
* An entry in the file system cache. Used for both entire directory listings
39
39
* and file entries.
40
40
*/
41
+ #pragma GCC diagnostic push
42
+ #pragma GCC diagnostic ignored "-Wpedantic"
41
43
struct fsentry {
42
44
struct hashmap_entry ent ;
43
45
mode_t st_mode ;
@@ -70,6 +72,7 @@ struct fsentry {
70
72
*/
71
73
struct dirent dirent ;
72
74
};
75
+ #pragma GCC diagnostic pop
73
76
74
77
struct heap_fsentry {
75
78
struct fsentry ent ;
Original file line number Diff line number Diff line change @@ -44,16 +44,19 @@ void mem_pool_init(struct mem_pool *pool, size_t initial_size)
44
44
if (initial_size > 0 )
45
45
mem_pool_alloc_block (pool , initial_size , NULL );
46
46
47
- trace_printf_key (& trace_mem_pool , "mem_pool (%p): init (%" PRIuMAX ") initial size\n" ,
48
- pool , (uintmax_t )initial_size );
47
+ trace_printf_key (& trace_mem_pool ,
48
+ "mem_pool (%p): init (%" PRIuMAX ") initial size\n" ,
49
+ (void * )pool , (uintmax_t )initial_size );
49
50
}
50
51
51
52
void mem_pool_discard (struct mem_pool * pool , int invalidate_memory )
52
53
{
53
54
struct mp_block * block , * block_to_free ;
54
55
55
- trace_printf_key (& trace_mem_pool , "mem_pool (%p): discard (%" PRIuMAX ") unused\n" ,
56
- pool , (uintmax_t )(pool -> mp_block -> end - pool -> mp_block -> next_free ));
56
+ trace_printf_key (& trace_mem_pool ,
57
+ "mem_pool (%p): discard (%" PRIuMAX ") unused\n" ,
58
+ (void * )pool ,
59
+ (uintmax_t )(pool -> mp_block -> end - pool -> mp_block -> next_free ));
57
60
block = pool -> mp_block ;
58
61
while (block )
59
62
{
You can’t perform that action at this time.
0 commit comments