Changeset 36e9cd1 in mainline for uspace/app/tester/fault/fault2.c


Ignore:
Timestamp:
2010-02-10T23:15:27Z (14 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0701066
Parents:
3149fc0
Message:

silence compiler warnings (no change in actual functionality)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/tester/fault/fault2.c

    r3149fc0 r36e9cd1  
    3030#include "../tester.h"
    3131
     32typedef int __attribute__((may_alias)) aliasing_int;
     33
    3234char *test_fault2(void)
    3335{
     
    3537        volatile int var1;
    3638       
    37         var1 = *((int *) (((char *) (&var)) + 1));
     39        var1 = *((aliasing_int *) (((char *) (&var)) + 1));
    3840       
    3941        return "Survived unaligned read";
Note: See TracChangeset for help on using the changeset viewer.