Changeset 1115


Ignore:
Timestamp:
Feb 9, 2007, 12:58:33 AM (13 years ago)
Author:
bruno
Message:

Fix a compiler error on libmondo-fork.c
Add option -fno-strict-aliasing to gcc to avoid a useless warning with gcc < 4.2

Location:
branches/stable/mondo
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/mondo/configure.in

    r1064 r1115  
    7474        AC_CHECK_LIB(pthread, pthread_create, true, [echo "*** Cannot find -lpthread."; echo "*** Please make sure you have the linuxthreads glibc add-on installed."; exit 1])
    7575        PTHREAD="-lpthread"
    76         CFLAGS="$CFLAGS -Wall -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_REENTRANT -Wshadow -funsigned-char -Wstrict-prototypes -Wunused -Winit-self -Wcast-align"
     76        CFLAGS="$CFLAGS -Wall -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_REENTRANT -Wshadow -funsigned-char -Wstrict-prototypes -Wunused -Winit-self -Wcast-align -fno-strict-aliasing"
    7777        ;;
    7878    *)
  • branches/stable/mondo/src/common/libmondo-fork.c

    r1113 r1115  
    181181    char *callstr = NULL;
    182182    char *incoming = NULL;
     183    char *tmp = NULL;
    183184
    184185    /*@ int ********************************************************* */
     
    218219
    219220    len = (int) strlen(program);
     221    malloc_string(tmp);
    220222    for (i = 0; i < 35 - len / 2; i++) {
    221223        tmp[i] = '-';
     
    229231    }
    230232    strcpy(initial_label, tmp);
     233    mr_free(tmp);
     234
    231235    res = system(callstr);
    232236    if (((res == 0) && log_if_success) || ((res != 0) && log_if_failure)) {
Note: See TracChangeset for help on using the changeset viewer.