Modify ↓
#144 closed defect (fixed)
Compilation warnings about implicit printf decalaration
Reported by: | 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 31 31 #include <pwd.h> 32 32 #include <sys/stat.h> 33 33 #include <string.h> 34 #include <stdio.h> 34 35 #include "run_email2trac.h" 35 36 36 37 #ifndef DEBUG
Attachments (0)
Note: See
TracTickets for help on using
tickets.
Fixed in Trunk