Bug 5049 - Compilation warning in nsswitch/idmap.c
Summary: Compilation warning in nsswitch/idmap.c
Alias: None
Product: Samba 3.0
Classification: Unclassified
Component: Build environment (show other bugs)
Version: 3.0.26a
Hardware: x86 Linux
: P3 normal
Target Milestone: none
Assignee: Tim Potter
QA Contact: Samba QA Contact
Depends on:
Reported: 2007-10-27 17:24 UTC by Patrick Rynhart
Modified: 2007-10-27 17:33 UTC (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Rynhart 2007-10-27 17:24:51 UTC
When compiling 3.0.26a on Etch, I am receiving the following compiler warning:

nsswitch/idmap.c: In function 'idmap_init':
nsswitch/idmap.c:426: warning: initialization discards qualifiers from pointer target type

The corresponding line is shown below with "---->"

/* find associated backend (default: tdb) */
if (compat) {
   parm_backend = talloc_strdup(idmap_ctx, compat_backend);
} else {
---->   char *backend = lp_parm_const_string(-1, config_option,"backend", "tdb");
   parm_backend = talloc_strdup(idmap_ctx, backend);
Comment 1 Patrick Rynhart 2007-10-27 17:33:48 UTC
Please ignore - this was fixed by r25107.