Re: FIXED Re: 11.0.0/11.0.1 badly formed expression on Solaris 11.3 with Solaris Developer Studio 12.6

"Gary R. Schmidt" <[email protected]>
Newsgroups gmane.comp.sysutils.backup.bacula.devel
Message-ID <[email protected]>
On 01/03/2021 22:00, Radosław Korzeniewski wrote:
[SNIP]
> Bacula configure script is checking for typeof() and sets HAVE_TYPEOF if 
> found. I think the proper fix should use:
> 
> #ifdefHAVE_TYPEOF
> ...
> #else
> ...
> #endif

More correctly, autfsckup should look for typeof, __typeof, and 
__typeof__, define TYPEOF appropriately, and *then* have #ifdef TYPEOF.

Or, better yet, people writing code that is intended to be portable 
should write it in C or C++, rather than GCC or G++ or some other dialect.

>     Also, the last line of src/filed/suspend.h does not have a newline,
> 
> 
> Is it a real problem for SDS?
> 
It's not a problem, it's just another pointless irritation.  Compilers 
should complain about mal-formed files, because they can't be sure they 
haven't been truncated by some error.

	Cheers,
		Gary	B-)


_______________________________________________
Bacula-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.