Skip to content

Instantly share code, notes, and snippets.

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 bright-light-in-the-night/50c2457348dad65b9ef7b6235cbc8e9f to your computer and use it in GitHub Desktop.
Save bright-light-in-the-night/50c2457348dad65b9ef7b6235cbc8e9f to your computer and use it in GitHub Desktop.
#include "mbed.h"
// Tutorial at https://ee-programming-notepad.blogspot.com/2016/10/suppress-any-warning-in-mbed-compiler.html
// Readme: https://developer.arm.com/docs/dui0472/latest/compiler-specific-features/pragma-diag_suppress-tagtag
// Warning and error codes: http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dui0496b/BABDJCCI.html
// Suppress "Warning: Integer conversion resulted in truncation in "main.cpp", Line: 15, Col: 16"
// 69 - Integer conversion resulted in truncation
#pragma diag_suppress 69
uint16_t address;
int main() {
address = 0x10000; // unattainable address
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment