Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
88eae9da
Commit
88eae9da
authored
Mar 14, 2014
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
command/{storage,file}: suppress bogus format warnings on WIN32
parent
f2f1801c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
0 deletions
+22
-0
FileCommands.cxx
src/command/FileCommands.cxx
+11
-0
StorageCommands.cxx
src/command/StorageCommands.cxx
+11
-0
No files found.
src/command/FileCommands.cxx
View file @
88eae9da
...
...
@@ -59,6 +59,13 @@ skip_path(const char *name_fs)
return
strchr
(
name_fs
,
'\n'
)
!=
nullptr
;
}
#if defined(WIN32) && GCC_CHECK_VERSION(4,6)
/* PRIu64 causes bogus compiler warning */
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wformat"
#pragma GCC diagnostic ignored "-Wformat-extra-args"
#endif
CommandResult
handle_listfiles_local
(
Client
&
client
,
const
char
*
path_utf8
)
{
...
...
@@ -109,6 +116,10 @@ handle_listfiles_local(Client &client, const char *path_utf8)
return
CommandResult
::
OK
;
}
#if defined(WIN32) && GCC_CHECK_VERSION(4,6)
#pragma GCC diagnostic pop
#endif
gcc_pure
static
bool
IsValidName
(
const
char
*
p
)
...
...
src/command/StorageCommands.cxx
View file @
88eae9da
...
...
@@ -46,6 +46,13 @@ skip_path(const char *name_utf8)
return
strchr
(
name_utf8
,
'\n'
)
!=
nullptr
;
}
#if defined(WIN32) && GCC_CHECK_VERSION(4,6)
/* PRIu64 causes bogus compiler warning */
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wformat"
#pragma GCC diagnostic ignored "-Wformat-extra-args"
#endif
static
bool
handle_listfiles_storage
(
Client
&
client
,
StorageDirectoryReader
&
reader
,
Error
&
error
)
...
...
@@ -83,6 +90,10 @@ handle_listfiles_storage(Client &client, StorageDirectoryReader &reader,
return
true
;
}
#if defined(WIN32) && GCC_CHECK_VERSION(4,6)
#pragma GCC diagnostic pop
#endif
static
bool
handle_listfiles_storage
(
Client
&
client
,
Storage
&
storage
,
const
char
*
uri
,
Error
&
error
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment