Changeset 1064 in MondoRescue for branches/stable/mondo/src/test


Ignore:
Timestamp:
Jan 23, 2007, 1:09:32 AM (17 years ago)
Author:
Bruno Cornec
Message:

More controls at the compiler level
still working with the problems around variable arguments

Location:
branches/stable/mondo/src/test
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/mondo/src/test/mktest

    r1054 r1064  
    77
    88lib="../lib/mr_conf.c ../lib/mr_msg.c ../lib/mr_err.c ../lib/mr_mem.c"
     9OPT="-Wall -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_REENTRANT -Wstrict-prototypes -Wshadow -funsigned-char -Wunused -Winit-self -Wcast-align -O2 -g -I../common -I../include"
    910
    1011echo "Generating test-msg"
    11 gcc -O2 -g -I../common -I../include test-msg.c $lib -o test-msg
     12gcc $OPT test-msg.c $lib -o test-msg
    1213echo "Generating test-string"
    13 gcc -O2 -g -I../common -I../include test-string.c ../lib/mr_str.c $lib -o test-string
     14gcc $OPT test-string.c ../lib/mr_str.c $lib -o test-string
    1415echo "Generating test-conf"
    15 gcc -O2 -g -I../common -I../include test-conf.c $lib -o test-conf
     16gcc $OPT test-conf.c $lib -o test-conf
    1617
    1718for f in test-conf test-string test-msg; do
  • branches/stable/mondo/src/test/test-conf.c

    r1054 r1064  
    1515int g_buffer_pid = 0;
    1616
    17 main() {
     17int main(void) {
    1818    int ret = 0;
    1919    int i = 0;
  • branches/stable/mondo/src/test/test-string.c

    r1054 r1064  
    66 */
    77
    8 #define _GNU_SOURCE
    98#include <string.h>
    109#include <stdlib.h>
     
    1413#include "mr_mem.h"
    1514
    16 main() {
     15int main(void) {
    1716    const char delims[3] = ": \n";
    1817   
Note: See TracChangeset for help on using the changeset viewer.