Bug 12296 - 79029 warnings attribute "format" is unknown, ignored
Summary: 79029 warnings attribute "format" is unknown, ignored
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: Build (show other bugs)
Version: 4.9.4
Hardware: All Solaris
: P5 minor (vote)
Target Milestone: 4.13
Assignee: Björn Jacke
QA Contact: Samba QA Contact
Depends on:
Reported: 2016-09-28 14:50 UTC by Tom Schulz
Modified: 2020-05-25 06:51 UTC (History)
2 users (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Tom Schulz 2016-09-28 14:50:20 UTC
Building Samba 4.4.6 or 4.5.0 on Solaris 10 using the Sun C compiler I get 79029 warnings:

warning:  attribute "format" is unknown, ignored

This happens with both the Sun C 5.11 and Sun C 5.13 compilers on both Sparc and i386 platforms. This looks to be due to changes in the code such as:

-#if (__GNUC__ >= 3) && (__GNUC_MINOR__ >= 1 )
+#ifdef HAVE___ATTRIBUTE__

and the fact that the test for __attribute__ suceeds. The test is:

            void test_attribute(void) __attribute__ (());

            void test_attribute(void)

            int main(void) {
                return 0;

And this does compile without any warnings. So it looks like the Sun C compilers do have attribute, just not attribute format.
Comment 1 Björn Jacke 2020-05-25 06:51:21 UTC
fixed in master with a4041ee6ca942a0117e5454888af5987f19671e6