[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avrdude-dev] [patch #8380] adds 500k 1M 2M baud to ser_posix.c
From: |
Georg von Zengen |
Subject: |
[avrdude-dev] [patch #8380] adds 500k 1M 2M baud to ser_posix.c |
Date: |
Wed, 12 Mar 2014 13:37:46 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1700.123 Safari/537.36 |
Follow-up Comment #11, patch #8380 (project avrdude):
ok useing __linux__ is possible (new patch).
But putting -std=c99 is a bad idea for other reasons also (sea below).
make all-recursive
make[1]: Entering directory `/mnt/ssd/projects/avrdude/avrdude'
Making all in .
make[2]: Entering directory `/mnt/ssd/projects/avrdude/avrdude'
gcc -DHAVE_CONFIG_H -I. -DCONFIG_DIR="/usr/local/etc" -Wall
-Wno-pointer-sign -std=c99 -g -O2 -MT avrdude-main.o -MD -MP -MF
.deps/avrdude-main.Tpo -c -o avrdude-main.o `test -f 'main.c' || echo
'./'`main.c
In file included from avr.h:26:0,
from main.c:47:
avrpart.h:166:29: error: ‘PATH_MAX’ undeclared here (not in a function)
char config_file[PATH_MAX]; /* config file where defined */
^
main.c: In function ‘main’:
main.c:456:3: warning: implicit declaration of function ‘getopt’
[-Wimplicit-function-declaration]
while ((ch = getopt(argc,argv,"?b:B:c:C:DeE:Fi:l:np:OP:qstU:uvVx:yY:")) !=
-1) {
^
main.c:460:27: error: ‘optarg’ undeclared (first use in this function)
baudrate = strtol(optarg, &e, 0);
^
main.c:460:27: note: each undeclared identifier is reported only once for each
function it appears in
main.c:660:36: error: ‘S_IFREG’ undeclared (first use in this function)
if ((rc < 0) || ((sb.st_mode & S_IFREG) == 0)) {
^
main.c:891:7: warning: implicit declaration of function ‘strdup’
[-Wimplicit-function-declaration]
if ((upd->memtype = strdup(mtype)) == NULL) {
^
main.c:891:25: warning: assignment makes pointer from integer without a cast
[enabled by default]
if ((upd->memtype = strdup(mtype)) == NULL) {
^
main.c:1032:5: warning: implicit declaration of function ‘usleep’
[-Wimplicit-function-declaration]
usleep(waittime);
^
main.c:1166:9: warning: implicit declaration of function ‘strcasecmp’
[-Wimplicit-function-declaration]
if ((strcasecmp(m->desc, memname) == 0) && (upd->op == DEVICE_WRITE))
{
^
main.c:324:11: warning: unused variable ‘usr_config’ [-Wunused-variable]
char usr_config[PATH_MAX]; /* per-user config file */
^
main.c:323:11: warning: unused variable ‘sys_config’ [-Wunused-variable]
char sys_config[PATH_MAX]; /* system wide config file */
^
make[2]: *** [avrdude-main.o] Error 1
make[2]: Leaving directory `/mnt/ssd/projects/avrdude/avrdude'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/mnt/ssd/projects/avrdude/avrdude'
make: *** [all] Error 2
(file #30876)
_______________________________________________________
Additional Item Attachment:
File name: custom_baud_linux_only_under.patch Size:4 KB
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/patch/?8380>
_______________________________________________
Nachricht gesendet von/durch Savannah
http://savannah.nongnu.org/
- [avrdude-dev] [patch #8380] adds 500k 1M 2M baud to ser_posix.c, (continued)
- [avrdude-dev] [patch #8380] adds 500k 1M 2M baud to ser_posix.c, Joerg Wunsch, 2014/03/06
- [avrdude-dev] [patch #8380] adds 500k 1M 2M baud to ser_posix.c, Georg von Zengen, 2014/03/06
- [avrdude-dev] [patch #8380] adds 500k 1M 2M baud to ser_posix.c, Joerg Wunsch, 2014/03/06
- [avrdude-dev] [patch #8380] adds 500k 1M 2M baud to ser_posix.c, Georg von Zengen, 2014/03/06
- [avrdude-dev] [patch #8380] adds 500k 1M 2M baud to ser_posix.c, Joerg Wunsch, 2014/03/07
- [avrdude-dev] [patch #8380] adds 500k 1M 2M baud to ser_posix.c, Joerg Wunsch, 2014/03/07
- [avrdude-dev] [patch #8380] adds 500k 1M 2M baud to ser_posix.c, Georg von Zengen, 2014/03/12
- [avrdude-dev] [patch #8380] adds 500k 1M 2M baud to ser_posix.c, Joerg Wunsch, 2014/03/12
- [avrdude-dev] [patch #8380] adds 500k 1M 2M baud to ser_posix.c, Georg von Zengen, 2014/03/12
- [avrdude-dev] [patch #8380] adds 500k 1M 2M baud to ser_posix.c, Joerg Wunsch, 2014/03/12
- [avrdude-dev] [patch #8380] adds 500k 1M 2M baud to ser_posix.c,
Georg von Zengen <=
- [avrdude-dev] [patch #8380] adds 500k 1M 2M baud to ser_posix.c, Joerg Wunsch, 2014/03/12
- [avrdude-dev] [patch #8380] adds 500k 1M 2M baud to ser_posix.c, Georg von Zengen, 2014/03/12