| View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||
| ID | Project | Category | View Status | Date Submitted | Last Update | ||||
|---|---|---|---|---|---|---|---|---|---|
| 0000024 | HomeAutomation System | System, Embedded software | public | 2012-11-05 22:01 | 2014-04-16 22:19 | ||||
| Reporter | Anders Sandblad | ||||||||
| Assigned To | Anders Sandblad | ||||||||
| Priority | normal | Severity | minor | Reproducibility | always | ||||
| Status | resolved | Resolution | won't fix | ||||||
| Summary | 0000024: Warning on function StdCan_Set_class under Ubuntu 12.10 | ||||||||
| Description | When calling function StdCan_Set_class e.g. with StdCan_Set_class(txMsg.Header, CAN_MODULE_CLASS_TST); there is a warning when builing module: ../modules/tst_CoreLED/tst_CoreLED.c:44:2: warning: ‘txMsg.<U62f8>.Header.ClassAndDirection’ is used uninitialized in this function [-Wuninitialized] Note there are other issues in 12.10 preventing some steps in "steps to reproduce". | ||||||||
| Steps To Reproduce | $ cd EmbeddedSoftware/AVR/personal $ svn export template_module/ test123 $ cd test123/ $ make bios $ ./ModuleManager --add=tst_CoreLED $ make | ||||||||
| Tags | No tags attached. | ||||||||
| Attached Files |
| ||||||||
Notes |
|
|
Anders Sandblad (administrator) 2012-11-05 22:36 |
StdCan_Set_class is a macro: #define StdCan_Set_class(Header, CLASS) Header.ClassAndDirection &= 0x01; Header.ClassAndDirection |= (CLASS << 1); which sets the class but leaves the direction bit unchanged. It is correct that ClassAndDirection variable is uninitialized but will always be set. |
|
Anders Sandblad (administrator) 2014-04-16 22:19 |
Does not seem to occur in Ubuntu 13.10. |
Issue History |
|||
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2012-11-05 22:01 | Anders Sandblad | New Issue | |
| 2012-11-05 22:09 | Anders Sandblad | Summary | Warning on function StdCan_Set_class => Warning on function StdCan_Set_class under Ubuntu 12.10 |
| 2012-11-05 22:36 | Anders Sandblad | Note Added: 0000035 | |
| 2014-04-16 22:19 | Anders Sandblad | Note Added: 0000045 | |
| 2014-04-16 22:19 | Anders Sandblad | Status | new => resolved |
| 2014-04-16 22:19 | Anders Sandblad | Resolution | open => won't fix |
| 2014-04-16 22:19 | Anders Sandblad | Assigned To | => Anders Sandblad |


