Modify

Opened 9 years ago

Closed 9 years ago

Last modified 8 years ago

#144 closed defect (fixed)

Compilation warnings about implicit printf decalaration

Reported by: kilian.cavalotti@… Owned by: bas
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 9 years ago by anonymous

  • Resolution set to fixed
  • Status changed from new to closed

Fixed in Trunk

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.