Skip to content

Instantly share code, notes, and snippets.

@MasterDuke17
Created April 19, 2017 12:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MasterDuke17/a08c5a13894735ae28118ef6ebc5170b to your computer and use it in GitHub Desktop.
Save MasterDuke17/a08c5a13894735ae28118ef6ebc5170b to your computer and use it in GitHub Desktop.
src/profiler/telemeh.c: In function ‘serializeTelemetryBufferRange’:
src/profiler/telemeh.c:211:31: warning: ' ' flag used with ‘%x’ gnu_printf format [-Wformat=]
fprintf(outfile, "% 10x ", record->threadID);
^
src/profiler/telemeh.c:211:31: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 3 has type ‘intptr_t {aka long int}’ [-Wformat=]
src/profiler/telemeh.c:218:52: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘long long unsigned int’ [-Wformat=]
fprintf(outfile, "Epoch counter: %ld\n", record->epoch.time);
^
src/profiler/telemeh.c:221:39: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘long long unsigned int’ [-Wformat=]
fprintf(outfile, "%15ld -|- \"%s\"\n", record->timeStamp.time - beginningEpoch, record->timeStamp.description);
^
src/profiler/telemeh.c:224:39: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘long long unsigned int’ [-Wformat=]
fprintf(outfile, "%15ld (- \"%s\" (%d)\n", record->interval.time - beginningEpoch, record->interval.description, record->interval.intervalID);
^
src/profiler/telemeh.c:227:39: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘long long unsigned int’ [-Wformat=]
fprintf(outfile, "%15ld -) \"%s\" (%d)\n", record->interval.time - beginningEpoch, record->interval.description, record->interval.intervalID);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment