Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 691db7ba authored by Elliott Hughes's avatar Elliott Hughes Committed by android-build-merger
Browse files

Merge \"Fix install.h\'s use of attribute printf.\"

am: a82ee456

Change-Id: Ibcfabbb0e044d503f889f1afea271cf73ad93f45
parents 8e6e4bc9 a82ee456
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -80,8 +80,7 @@ static void uiPrint(State* state, const std::string& buffer) {
    fprintf(stderr, "%s", buffer.c_str());
}

__attribute__((__format__(printf, 2, 3))) __nonnull((2))
void uiPrintf(State* state, const char* format, ...) {
void uiPrintf(State* _Nonnull state, const char* _Nonnull format, ...) {
    std::string error_msg;

    va_list ap;
+2 −2
Original line number Diff line number Diff line
@@ -20,8 +20,8 @@
void RegisterInstallFunctions();

// uiPrintf function prints msg to screen as well as logs
void uiPrintf(State* state, const char* format, ...);
void uiPrintf(State* _Nonnull state, const char* _Nonnull format, ...) __attribute__((__format__(printf, 2, 3)));

static int make_parents(char* name);
static int make_parents(char* _Nonnull name);

#endif