mirror of
https://github.com/avrdudes/avrdude.git
synced 2026-09-23 01:26:19 +03:00
Warn if C library fails %zi scanf format
This commit is contained in:
@@ -949,6 +949,10 @@ int main(int argc, char * argv [])
|
||||
}
|
||||
}
|
||||
|
||||
size_t ztest;
|
||||
if(1 != sscanf("42", "%zi", &ztest) || ztest != 42 || 1)
|
||||
pmsg_warning("Linked C library does not conform to C99; %s may not work as expected\n", progname);
|
||||
|
||||
/* search for system configuration file unless -C conffile was given */
|
||||
if (strlen(sys_config) == 0) {
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user