mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
9643a4b1ef
It's best practice to include external header files before internal header files. In this case internal DEBUG macro cannot be defined and therefore samba version of debug macro will be included in header file "util/fault.h". In file included from example.c:27:0: src/util/util.h:127:0: error: "DEBUG" redefined [-Werror] #define DEBUG(level, format, ...) do { \ ^ In file included from /usr/include/samba-4.0/util/fault.h:29:0, from /usr/include/samba-4.0/samba_util.h:62, from /usr/include/samba-4.0/ndr.h:30, from example.c:24: /usr/include/samba-4.0/util/debug.h:182:0: note: this is the location of the previous definition #define DEBUG( level, body ) \ ^ CC src/providers/ad/libsss_ad_common_la-ad_domain_info.lo cc1: all warnings being treated as errors BUG: https://bugzilla.samba.org/show_bug.cgi?id=11033 Signed-off-by: Lukas Slebodnik <lslebodn@redhat.com> Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Martin Schwenke <martin@meltin.net> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Wed Mar 11 18:47:22 CET 2015 on sn-devel-104 |
||
---|---|---|
.. | ||
ads.h | ||
adt_tree.h | ||
async_smb.h | ||
auth_generic.h | ||
auth_info.h | ||
auth.h | ||
client.h | ||
ctdb_srvids.h | ||
ctdbd_conn.h | ||
debugparse.h | ||
event.h | ||
fake_file.h | ||
g_lock.h | ||
idmap_autorid_tdb.h | ||
idmap.h | ||
includes.h | ||
intl.h | ||
krb5_env.h | ||
libsmb_internal.h | ||
libsmbclient.h | ||
local.h | ||
locking.h | ||
lsa.h | ||
MacExtensions.h | ||
mangle.h | ||
messages.h | ||
msdfs.h | ||
nameserv.h | ||
nss_info.h | ||
nt_printing.h | ||
ntdomain.h | ||
ntioctl.h | ||
ntquotas.h | ||
passdb.h | ||
popt_common.h | ||
printing.h | ||
proto.h | ||
registry.h | ||
rpc_dce.h | ||
rpc_misc.h | ||
safe_string.h | ||
samba_linux_quota.h | ||
secrets.h | ||
serverid.h | ||
session.h | ||
smb_acls.h | ||
smb_krb5.h | ||
smb_ldap.h | ||
smb_macros.h | ||
smb_perfcount.h | ||
smb_share_modes.h | ||
smb.h | ||
smbldap.h | ||
smbprofile.h | ||
srvstr.h | ||
stamp-h.in | ||
sysquotas.h | ||
talloc_dict.h | ||
tldap_util.h | ||
tldap.h | ||
trans2.h | ||
transfer_file.h | ||
util_tdb.h | ||
vfs_macros.h | ||
vfs.h |