Skip to content

compilation errors & warnings under Clang 12 #278

Description

@Stoatwblr

Nothing major (May 20 git download)

ABOUT-NLS and license.txt didn't unpack from the zip file for some reason (or were deleted during initial build?)

a bunch of

clang: warning: optimization flag '-flto=auto' is not supported [-Wignored-optimization-argument]
clang: warning: optimization flag '-ffat-lto-objects' is not supported [-Wignored-optimization-argument]

a bunch of these operator warnings

/ZFSMEDIA/MISC/amule/amule-master/src/kademlia/kademlia/Prefs.cpp:231:67: warning: operator '?:' has lower precedence than '|'; '|' will be evaluated first [-Wbitwise-conditional-parentheses]
               | (thePrefs::IsClientCryptLayerSupported() && encryption) ? 0x01 : 0;
               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
ZFSMEDIA/MISC/amule/amule-master/src/kademlia/kademlia/Prefs.cpp:231:67: note: place parentheses around the '|' expression to silence this warning
               | (thePrefs::IsClientCryptLayerSupported() && encryption) ? 0x01 : 0;
                                                                         ^
                                                                        )

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions