Changeset 36e9cd1 in mainline for uspace/app


Ignore:
Timestamp:
2010-02-10T23:15:27Z (16 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)

Location:
uspace/app
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/bdsh/cmds/builtins/builtins.h

    r3149fc0 r36e9cd1  
    1010#include "cd/cd_def.h"
    1111#include "exit/exit_def.h"
    12         {NULL, NULL, NULL, NULL}
     12        {NULL, NULL, NULL, NULL, NULL}
    1313};
    1414
  • uspace/app/bdsh/cmds/builtins/cd/cd_def.h

    r3149fc0 r36e9cd1  
    44        &cmd_cd,
    55        &help_cmd_cd,
     6        0
    67},
  • uspace/app/bdsh/cmds/builtins/exit/exit_def.h

    r3149fc0 r36e9cd1  
    44        &cmd_exit,
    55        &help_cmd_exit,
     6        0
    67},
  • uspace/app/bdsh/input.c

    r3149fc0 r36e9cd1  
    508508{
    509509        int sa, sb;
    510         wchar_t tmp_c;
    511510        char *str;
    512511
     
    514513
    515514        if (sb < ti->nc) {
    516                 tmp_c = ti->buffer[sb];
     515                wchar_t tmp_c = ti->buffer[sb];
    517516                ti->buffer[sb] = '\0';
    518         }
    519 
    520         str = wstr_to_astr(ti->buffer + sa);
    521 
    522         if (sb < ti->nc)
     517                str = wstr_to_astr(ti->buffer + sa);
    523518                ti->buffer[sb] = tmp_c;
    524 
     519        } else
     520                str = wstr_to_astr(ti->buffer + sa);
     521       
    525522        if (str == NULL)
    526523                goto error;
  • uspace/app/edit/edit.c

    r3149fc0 r36e9cd1  
    718718        wchar_t c;
    719719        size_t pos, size;
    720         unsigned s_column;
     720        int s_column;
    721721        coord_t csel_start, csel_end, ctmp;
    722722
     
    766766                s_column = pane.sh_column;
    767767                while (pos < size) {
    768                         if (csel_start.row == rbc.row && csel_start.column == s_column) {
     768                        if ((csel_start.row == rbc.row) && (csel_start.column == s_column)) {
    769769                                fflush(stdout);
    770770                                console_set_color(con, COLOR_BLACK, COLOR_RED, 0);
     
    772772                        }
    773773       
    774                         if (csel_end.row == rbc.row && csel_end.column == s_column) {
     774                        if ((csel_end.row == rbc.row) && (csel_end.column == s_column)) {
    775775                                fflush(stdout);
    776776                                console_set_color(con, COLOR_BLACK, COLOR_WHITE, 0);
     
    792792                }
    793793
    794                 if (csel_end.row == rbc.row && csel_end.column == s_column) {
     794                if ((csel_end.row == rbc.row) && (csel_end.column == s_column)) {
    795795                        fflush(stdout);
    796796                        console_set_color(con, COLOR_BLACK, COLOR_WHITE, 0);
  • uspace/app/mkfat/fat.h

    r3149fc0 r36e9cd1  
    7878                        uint16_t        signature;
    7979                } __attribute__ ((packed));
    80                 struct fat32 {
     80                struct {
    8181                        /* FAT32 only */
    8282                        /** Sectors per FAT. */
     
    108108                        /** Signature. */
    109109                        uint16_t        signature;
    110                 } __attribute__ ((packed));
     110                } fat32 __attribute__ ((packed));
    111111        };
    112112} __attribute__ ((packed)) fat_bs_t;
  • uspace/app/redir/redir.c

    r3149fc0 r36e9cd1  
    7272static task_id_t spawn(int argc, char *argv[])
    7373{
    74         char **args = (char *) calloc(argc + 1, sizeof(char *));
     74        char **args = (char **) calloc(argc + 1, sizeof(char *));
    7575        if (!args) {
    7676                printf("No memory available\n");
  • uspace/app/taskdump/taskdump.c

    r3149fc0 r36e9cd1  
    356356}
    357357
    358 static int area_dump(as_area_info_t *area)
     358static __attribute__((unused)) int area_dump(as_area_info_t *area)
    359359{
    360360        size_t to_copy;
  • 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.