Modify

Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#144 closed defect (fixed)

Compilation warnings about implicit printf decalaration

Reported by: kilian.cavalotti@… Owned by: Bas van der Vlies
Priority: normal Component: EmailtoTracScript
Severity: minor Keywords: gcc warning printf
Cc: Trac Release:

Description

Problem :

gcc -DMTA_USER=\"nobody\" -DTRAC_USER=\"www-data\" -DTRAC_SCRIPT_NAME=\"\" -DTRAC_SCRIPT_PATH=\"/var/lib/trac/iadmin/email2trac/bin\" -DDEBUG=0 -o run_email2trac run_email2trac.c
run_email2trac.c: In function 'main':
run_email2trac.c:76: warning: incompatible implicit declaration of built-in function 'printf'
run_email2trac.c:86: warning: incompatible implicit declaration of built-in function 'printf'
run_email2trac.c:92: warning: incompatible implicit declaration of built-in function 'printf'
run_email2trac.c:98: warning: incompatible implicit declaration of built-in function 'printf'

Fix:

  • run_email2trac.c

    old new  
    3131#include <pwd.h>
    3232#include <sys/stat.h>
    3333#include <string.h>
     34#include <stdio.h>
    3435#include "run_email2trac.h"
    3536
    3637#ifndef DEBUG

Attachments (0)

Change History (1)

comment:1 Changed 11 years ago by anonymous

Resolution: fixed
Status: newclosed

Fixed in Trunk

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Bas van der Vlies.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.