This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 254547 - printf() and Freeway sample
Summary: printf() and Freeway sample
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 8.1
Hardware: PC Solaris
: P3 normal (vote)
Assignee: danilasergeyev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-20 09:19 UTC by soldatov
Modified: 2015-08-28 01:24 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description soldatov 2015-08-20 09:19:02 UTC
Scenario:
- Create Freeway sample
- Open trafic.cc file
==> file has 4 errors (360th, 499th, 963th and 970th lines)

sprintf(msg, "%s: %s", traffic_current_file + i, status);
...
sprintf(buf, "Speed Zone %d", ix + 1);
...
sprintf(buffer, "%d", round(front_gap * 5280.0));
...
sprintf(buffer, "%d", round(back_gap * 5280.0));
Comment 1 danilasergeyev 2015-08-21 16:37:00 UTC
fixed in change set:
https://hg.netbeans.org/cnd-main/rev/9b0ab1bc9d0b
Comment 2 Quality Engineering 2015-08-22 02:12:18 UTC
Integrated into 'main-silver', will be available in build *201508220002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/9b0ab1bc9d0b
User: Danila Sergeyev <danilasergeyev@netbeans.org>
Log: fix bug #254547 printf() and Freeway sample
Comment 3 danilasergeyev 2015-08-27 11:34:03 UTC
workaround - prohibit resolving of types of macros:
https://hg.netbeans.org/cnd-main/rev/79ab981eb736
Comment 4 Quality Engineering 2015-08-28 01:24:14 UTC
Integrated into 'main-silver', will be available in build *201508280002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/79ab981eb736
User: Danila Sergeyev <danilasergeyev@netbeans.org>
Log: fix bug #254547 printf() and Freeway sample