Pragma's specific to MSVC shouldn't be used

This commit is contained in:
litghost 2013-09-24 20:48:37 -07:00 • committed by Keith Rothman
commit 5269028f23
3 changed files with 0 additions and 4 deletions

View file

@ -133,7 +133,6 @@ static int next_arg(char **saveptr, char **arg, char **value)
}
/* Argument name */
#pragma warning(suppress: 6001) // saveptr_local is an out argument from strtok_r, so if strtok_r doesn't return null
*arg = strtok_r(token, "=", &saveptr_local);
if (!*arg) {
@ -173,7 +172,6 @@ int str2devinfo(const char *dev_id_const, struct bladerf_devinfo *d)
}
/* Extract backend */
#pragma warning(suppress: 6001) // saveptr_local is an out argument from strtok_r, so if strtok_r doesn't return null
token = strtok_r(dev_id, ":", &saveptr);
/* We require a valid backend -- args only is not supported */

View file

@ -453,7 +453,6 @@ int cmd_handle(struct cli_state *s, const char *line_)
argc = 0;
ret = 0;
#pragma warning(suppress: 6001) // saveptr is an out argument from strtok_r, so if strtok_r doesn't return null
token = strtok_r(line, " \t\r\n", &saveptr);
/* Fill argv as long as we see tokens that aren't comments */

View file

@ -487,7 +487,6 @@ static int tx_csv_to_sc16q12(struct cli_state *s)
while (fgets(buff, sizeof(buff), tx->common.file))
{
/* I */
#pragma warning(suppress: 6001) // saveptr is an out argument from strtok_r, so if strtok_r doesn't return null
token = strtok_r(buff, delim, &saveptr);
if (token) {