Bug 1762 - Function prototypes should not be declared in a function
Function prototypes should not be declared in a function
Status: CLOSED FIXED
Product: Samba 3.0
Classification: Unclassified
Component: winbind
3.0.7
PPC AIX
: P3 normal
: none
Assigned To: Samba Bugzilla Account
Samba QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2004-09-14 15:34 UTC by The Written Word
Modified: 2005-08-24 10:25 UTC (History)
0 users

See Also:


Attachments
Patch (455 bytes, patch)
2004-09-14 15:35 UTC, The Written Word
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description The Written Word 2004-09-14 15:34:55 UTC
source/nsswitch/winbind_nss_aix.c contains a function prototype in a function,
which the IBM C compiler does not like:
xlc -I. -I/opt/build/samba-3.0.7/source -O2 -qmaxmem=-1 -qarch=com
-D_LINUX_SOURCE_COMPAT -qmaxmem=32000 -I./popt -Iinclude
-I/opt/build/samba-3.0.7/source/include -I/opt/build/samba-3.0.7/source/ubiqx
-I/opt/build/samba-3.0.7/source/smbwrapper -I. -I/opt/TWWfsw/readline43s/include
-I/opt/TWWfsw/readline43s/include -I/opt/TWWfsw/openldap2127/include
-I/opt/build/samba-3.0.7/source -O2 -c nsswitch/winbind_nss_aix.c -o
nsswitch/winbind_nss_aix.po
"nsswitch/winbind_nss_aix.c", line 167.31: 1506-283 (E) Functions cannot be
declared static at block scope, static is ignored.
Comment 1 The Written Word 2004-09-14 15:35:07 UTC
Created attachment 659 [details]
Patch
Comment 2 Tim Potter 2004-09-30 19:59:14 UTC
Checked in - thanks again!
Comment 3 Gerald (Jerry) Carter 2005-08-24 10:25:49 UTC
sorry for the same, cleaning up the database to prevent unecessary reopens of bugs.